2014-01-22 50 views
1
[INFO] Verifying that there are no local modifications... 
[INFO] ignoring changes on: **/pom.xml.backup, **/release.properties, **/pom.xml.branch, **/pom.xml.next, **/pom.xml.releaseBackup, **/pom.xml.tag 
[INFO] Executing: /bin/sh -c cd /opt/Jenkins/ic/jenkins/jobs/util/workspace && git status 
[INFO] Working directory: /opt/Jenkins/ic/jenkins/jobs/util/workspace 
[INFO] Checking dependencies and plugins for snapshots ... 
[INFO] Transforming 'my_proyect'... 
[INFO] Not generating release POMs 
[INFO] Executing goals 'clean verify'... 

[INFO] ------------------------------------------------------------------------ 
[INFO] BUILD FAILURE 
[INFO] ------------------------------------------------------------------------ 
[INFO] Total time: 1:23.375s 
[INFO] Finished at: Wed Jan 22 15:21:16 ECT 2014 
[JENKINS] Archiving /opt/Jenkins/ic/jenkins/jobs/util/workspace/pom.xml to xx.xxx.xxxx/my_proyect/1.0.2-SNAPSHOT/my_proyect-1.0.2-SNAPSHOT.pom 
[INFO] Final Memory: 16M/246M 
[INFO] ------------------------------------------------------------------------ 
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.3.2:prepare (default-cli) on project my_proyect: Could not create temporary file for release settings.xml: Permission denied -> [Help 1] 
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 
[ERROR] Re-run Maven using the -X switch to enable full debug logging. 
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles: 
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException 
channel stopped 
Finished: FAILURE 

我需要幫助。 構建快照時不會給我帶來問題,但如果我想生成發佈版本,則會獲得上述日誌。 我有詹金斯1.548 行家3.1.1 關係2.7.0-0jenkins無法執行目標org.apache.maven.plugins:maven-release-plugin:2.3.2:prepare(default-cli)

+0

您的錯誤:「無法爲發佈settings.xml創建臨時文件:權限被拒絕」。因此請檢查您的權利! – willome

+0

看我給他的權限文件settings.xml maven和maven用戶tomcat運行以及其他工具。 任何其他想法.. – user3225192

+1

你還有這個問題嗎?如果是這樣,我認爲我有你的解決方案。 – jedison

回答

2

詹金斯+行家釋放小插件+的settings.xml =痛苦

檢查是否有提及設置下列地點或覆蓋.xml文件:

  • 詹金斯
    • 實例級配置
      • 一般的Maven部分
      • 的Maven插件發佈部分
    • 作業級配置
      • 一般Maven的部分
      • 的Maven插件發佈部分
  • pom.xml文件
    • 行家 - 發佈 - 插件部分
    • 型材部分

此外,事情取決於你如何在詹金斯運行作業得到挑剔:

  • 與Maven目標
  • 使用
  • Maven的工作自由泳工作「發佈:準備」目標的常規「Build」按鈕
  • 使用「Run Maven Release」按鈕的Maven版本

嘗試嘗試不同的工作類型。

+0

爲什麼downvote? – 333kenshin

+0

爲你修復了downvote。 SO充斥着無所作爲的大佬,只能繞過別人的帖子並且低​​頭投票。 –

相關問題