我将现有应用程序迁移到Spring Boot。为了简化项目配置,我决定将spring-boot-starter-parent
设置为父级。
问题在于surefire配置
<configuration>
<includes>
<include>**/*Tests.java</include>
<include>**/*Test.java</include>
</includes>
<excludes>
<exclude>**/Abstract*.java</exclude>
</excludes>
</configuration>
与默认的surefire设置不同,并破坏了我的构建。 我怎样才能撤消&#34;包含/排除Spring Boot?不会覆盖,但请回到surefire默认值。
我认为spring-boot-starter-parent
应该是中立的。
PS。迟早我会自己解决问题。目前的问题是Spring Boot
的问题答案 0 :(得分:1)
我恢复了包含的绝对默认值,并使用
排除<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<includes>
<include>**/Test*.java</include>
<include>**/*Test.java</include>
<include>**/*TestCase.java</include>
</includes>
<excludes>
<exclude>**/*$*</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>