0
這裏是pom.xml
從我的項目maven配置文件配置集成階段執行在生命週期?
<profiles>
<profile>
<id>run-tests</id>
<build>
<plugins>
<plugin>
<groupId>com.google.code.maven-replacer-plugin</groupId>
<artifactId>replacer</artifactId>
<version>1.5.2</version>
<executions>
<execution>
<phase>pre-integration-test</phase>
<goals>
<goal>replace</goal>
</goals>
</execution>
</executions>
<configuration>
<includes>
......
</includes>
<replacements>
<replacement>
.......
</replacement>
</replacements>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>2.18.1</version>
<configuration>
......
</configuration>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
<phase>integration-test</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
冷凝段我有兩個問題:
1)當我執行mvn clean package -Prun-tests
,會發生什麼?我預計這些插件目標都不會在這裏執行,因爲它們綁定到integration-test
階段。但是我看到這些目標被執行爲什麼?
2)execution
block有兩個目標是什麼意思?請參見上文中failsafe-plugin
感謝
什麼有'verify'無相的目標是什麼意思? –
爲點1 - 你的意思是個人資料已經沒有影響,當運行'MVN清潔套裝-prun,tests'? –
驗證目標不相指驗證目標運行在驗證階段(到其默認綁定) –