[英]Maven build error: failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.5: deploy (default-deploy) on project pluto
[英]Maven build fails at site default-deploy
從最近兩天開始,我一直在努力解決我的Maven構建問題,但幾乎沒有成功。 你能幫我嗎?
我有一個父pom.xml看起來像
<distributionmanagement> Repository... Snapshot <site> site config here.. </site> </distributionmanagement>
在子pom.xml中,如果我執行“ mvn install”,我寫的效果很好。 tar文件已創建並出現在項目/目標文件夾中。 到目前為止看起來不錯...
我在想的是-由於不需要創建tar,並將其上傳到Subversion存儲庫中,因此可以創建站點並進行部署。 我該怎么說,一旦創建了tar,就什么也不做,這就是我的終點。 換句話說-不為我運行任何與“站點”相關的東西嗎?
========================更新
我的發布插件配置如下
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<configuration>
<tagBase></tagBase>
</configuration>
</plugin>
實際上,我們確實從包含如下mvn語句的批處理文件中釋放了-
call mvn clean call mvn install call mvn -B release:prepare -DdryRun=true -DscmCommentPrefix="somecomment" call mvn -B release:clean call mvn -B release:prepare -DscmCommentPrefix="somecomment" call mvn -B release:perform -DscmCommentPrefix="somecomment"
你能現在建議我嗎?
您應該更改maven-release-plugin配置為no來進行站點部署,默認情況如下:
<plugin>
<artifactId>maven-release-plugin</artifactId>
<version>2.4.1</version>
<configuration>
<goals>deploy</goals>
</configuration>
</plugin>
或者,如果確實不需要創建站點並進行部署(如您在問題中所述),則可以刪除<distributionManagement>
部分。 根據文檔,默認目標是“如果項目具有<distributionManagement>
/ <site>
元素,則部署或部署site-deploy”。
http://maven.apache.org/maven-release/maven-release-plugin/perform-mojo.html
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.