Clean up the pom.xml in spring-boot-exceptions
<name>spring-boot-exceptions</name>
<description>Demo project for working with Spring Boot exceptions</description>
- <dependencies>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter</artifactId>
- <version>${spring-boot.version}</version>
- </dependency>
- </dependencies>
-
<build>
<finalName>spring-boot-exceptions</finalName>
<resources>
<filtering>true</filtering>
</resource>
</resources>
-
- <plugins>
-
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-war-plugin</artifactId>
- </plugin>
-
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-resources-plugin</artifactId>
- <configuration>
- <delimiters>
- <delimiter>@</delimiter>
- </delimiters>
- <useDefaultDelimiters>false</useDefaultDelimiters>
- </configuration>
- </plugin>
- </plugins>
-
- </build>
-
- <profiles>
- <profile>
- <id>autoconfiguration</id>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <executions>
- <execution>
- <phase>integration-test</phase>
- <goals>
- <goal>test</goal>
- </goals>
- <configuration>
- <excludes>
- <exclude>**/*LiveTest.java</exclude>
- <exclude>**/*IntegrationTest.java</exclude>
- <exclude>**/*IntTest.java</exclude>
- </excludes>
- <includes>
- <include>**/AutoconfigurationTest.java</include>
- </includes>
- </configuration>
- </execution>
- </executions>
- <configuration>
- <systemPropertyVariables>
- <test.mime>json</test.mime>
- </systemPropertyVariables>
- </configuration>
- </plugin>
- </plugins>
</build>
- </profile>
- </profiles>
- <properties>
- <!-- The main class to start by executing java -jar -->
- <start-class>com.baeldung.intro.App</start-class>
- <spring-boot.version>2.2.3.RELEASE</spring-boot.version>
- </properties>
</project>
