[ BAEL-3751] : Reformat pom.xml

This commit is contained in:
Lukasz Rys 2020-04-30 23:36:38 +02:00
parent f8edc08ca6
commit 80caea1575

View File

@ -1,107 +1,107 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" <project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>spring-boot-ci-cd</artifactId> <artifactId>spring-boot-ci-cd</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>spring-boot-ci-cd</name>
<packaging>jar</packaging>
<parent>
<groupId>com.baeldung</groupId>
<artifactId>parent-boot-2</artifactId>
<version>0.0.1-SNAPSHOT</version> <version>0.0.1-SNAPSHOT</version>
<relativePath>../parent-boot-2</relativePath> <name>spring-boot-ci-cd</name>
</parent> <packaging>jar</packaging>
<dependencies> <parent>
<dependency> <groupId>com.baeldung</groupId>
<groupId>org.springframework.boot</groupId> <artifactId>parent-boot-2</artifactId>
<artifactId>spring-boot-starter-web</artifactId> <version>0.0.1-SNAPSHOT</version>
</dependency> <relativePath>../parent-boot-2</relativePath>
</parent>
<dependency> <dependencies>
<groupId>org.springframework.boot</groupId> <dependency>
<artifactId>spring-boot-starter-actuator</artifactId> <groupId>org.springframework.boot</groupId>
</dependency> <artifactId>spring-boot-starter-web</artifactId>
</dependencies> </dependency>
<build> <dependency>
<plugins> <groupId>org.springframework.boot</groupId>
<plugin> <artifactId>spring-boot-starter-actuator</artifactId>
<groupId>org.springframework.boot</groupId> </dependency>
<artifactId>spring-boot-maven-plugin</artifactId> </dependencies>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.5</version>
<executions>
<execution>
<id>default-prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles> <build>
<profile>
<id>deploy-heroku</id>
<properties>
<maven.deploy.skip>true</maven.deploy.skip>
</properties>
<build>
<plugins> <plugins>
<plugin> <plugin>
<groupId>com.heroku.sdk</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>heroku-maven-plugin</artifactId> <artifactId>spring-boot-maven-plugin</artifactId>
<version>3.0.2</version> </plugin>
<configuration> <plugin>
<appName>spring-boot-ci-cd</appName> <groupId>org.jacoco</groupId>
<processTypes> <artifactId>jacoco-maven-plugin</artifactId>
<web>java $JAVA_OPTS -jar -Dserver.port=$PORT target/${project.build.finalName}.jar</web> <version>0.8.5</version>
</processTypes> <executions>
</configuration> <execution>
</plugin> <id>default-prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins> </plugins>
</build> </build>
</profile>
<profile> <profiles>
<id>deploy-docker</id> <profile>
<properties> <id>deploy-heroku</id>
<maven.deploy.skip>true</maven.deploy.skip> <properties>
</properties> <maven.deploy.skip>true</maven.deploy.skip>
<build> </properties>
<plugins> <build>
<plugin> <plugins>
<groupId>com.google.cloud.tools</groupId> <plugin>
<artifactId>jib-maven-plugin</artifactId> <groupId>com.heroku.sdk</groupId>
<version>2.2.0</version> <artifactId>heroku-maven-plugin</artifactId>
<configuration> <version>3.0.2</version>
<to> <configuration>
<image>registry.hub.docker.com/baeldungjib/baeldung-ci-cd-process</image> <appName>spring-boot-ci-cd</appName>
<tags> <processTypes>
<tag>${project.version}</tag> <web>java $JAVA_OPTS -jar -Dserver.port=$PORT target/${project.build.finalName}.jar</web>
<tag>latest</tag> </processTypes>
</tags> </configuration>
</to> </plugin>
</configuration> </plugins>
</plugin> </build>
</plugins> </profile>
</build> <profile>
</profile> <id>deploy-docker</id>
</profiles> <properties>
<maven.deploy.skip>true</maven.deploy.skip>
</properties>
<build>
<plugins>
<plugin>
<groupId>com.google.cloud.tools</groupId>
<artifactId>jib-maven-plugin</artifactId>
<version>2.2.0</version>
<configuration>
<to>
<image>registry.hub.docker.com/baeldungjib/baeldung-ci-cd-process</image>
<tags>
<tag>${project.version}</tag>
<tag>latest</tag>
</tags>
</to>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project> </project>