jenkins无法执行目标org.apache.maven.plugins:maven-release-plugin:2.3.2:prepare(default-cli)

时间:2014-01-22 20:50:29

标签: java maven jenkins

[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

我需要帮助。 构建快照时不会给我带来问题,但如果我想生成一个版本,我会得到上面的日志。 我有jenkins 1.548 maven 3.1.1 nexus 2.7.0-0

1 个答案:

答案 0 :(得分:3)

Jenkins + maven-release-plugin + settings.xml =痛苦

检查以下位置是否有任何提及或覆盖settings.xml文件:

  • 詹金斯
    • 实例级配置
      • 一般Maven部分
      • Maven发布插件部分
    • 作业级配置
      • 一般Maven部分
      • Maven发布插件部分
  • pom.xml文件
    • maven-release-plugin section
    • 个人资料部分

此外,根据你在詹金斯的工作方式,事情可能会变得挑剔:

  • Maven目标的自由式工作
  • 使用常规“构建”按钮和“发布:准备”目标
  • 的Maven工作
  • 使用“Run Maven Release”按钮
  • 构建Maven

尝试尝试不同的工作类型。

相关问题