我有一个Maven项目,有多个重叠的配置文件.我想在每个构建开始时显示活动的配置文件.所以我将以下内容放入该pom.xml <build>部分:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-help-plugin</artifactId>
<version>2.1.1</version>
<executions>
<execution>
<id>display-active-profiles-at-start-of-build</id>
<phase>validate</phase>
<goals>
<goal>active-profiles</goal>
</goals>
</execution>
</executions>
</plugin>
Run Code Online (Sandbox Code Playgroud)
问题是插件在构建期间执行多次:
validate阶段期间).jar:jar执行.source:jar/ pre-integration-test?(?)之后,当Jetty正在启动时.指定时的结果类似<phase>initialize</phase>.有没有办法让它只在构建开始时运行?