使用maven-release-plugin,我嘗試了所有可能的方法(我也可以在命令行上),到skip compiling
我的測試,但還沒有迄今爲止成功。我想通過pom跳過。這是我的pom.xml的樣子Maven-release-plugin跳過編譯和運行pom.xml中的測試設置
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<configuration>
<arguments>-Dmaven.test.skip</arguments>
<goals>deploy</goals>
</configuration>
</plugin>
我從這篇文章試圖解決方案: How can I get maven-release-plugin to skip my tests?但無法得到它的工作。
嘗試surefire http://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html#skip 但沒有運氣。
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.12.4</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
請幫我使用maven-release-plugin來修復我的pom.xml。
我在我的測試中其失敗構建一些依賴問題在命令行中完成的,我希望得到周圍一會兒測試一些代碼更改我已經完成了。我對maven來說是全新的,我正在研究的這個項目有這個測試配置的pom,所以我想跳過它。 – linoox
爲什麼你沒有在版本控制中使用分支來解決這樣的事情?除了羅伯已經提到的。 – khmarbaise