add a main-class variable on maven building and exclude IntegrationTests (#1530)

* add a main-class variable on maven building and exclude IntegrationTests

* hardcode spring-boot main class to Spring5Application
This commit is contained in:
Tian Baoqiang 2017-03-29 17:43:21 +08:00 committed by Grzegorz Piwowarek
parent 1a7ccb8248
commit e6d9dde931
1 changed files with 15 additions and 0 deletions

View File

@ -70,6 +70,21 @@
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<mainClass>com.baeldung.Spring5Application</mainClass>
<layout>JAR</layout>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<excludes>
<exclude>**/*IntegrationTest.java</exclude>
<exclude>**/*LiveTest.java</exclude>
</excludes>
</configuration>
</plugin>
<plugin>