Java jenkins未能执行goal org.apache.maven.plugins:maven发布插件:2.3.2:prepare(默认cli)

Java jenkins未能执行goal org.apache.maven.plugins:maven发布插件:2.3.2:prepare(默认cli),java,maven,jenkins,Java,Maven,Jenkins,我需要帮助。 构建快照时不会给我带来问题,但是如果我想生成一个版本,我会得到上面的日志。 我有詹金斯1.548 maven 3.1.1 nexus 2.7.0-0Jenkins+maven发布插件+settings.xml=痛苦 检查以下位置是否提及或覆盖settings.xml文件: 詹金斯 实例级配置 一般马文科 Maven发布插件部分 作业级别配置 一般马文科 Maven发布插件部分 pom.xml文件 maven发布插件部分 剖面剖面 此外,根据你在詹金斯的工作方式,

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

Jenkins+maven发布插件+settings.xml=痛苦

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

  • 詹金斯
    • 实例级配置
      • 一般马文科
      • Maven发布插件部分
    • 作业级别配置
      • 一般马文科
      • Maven发布插件部分
  • pom.xml文件
    • maven发布插件部分
    • 剖面剖面
此外,根据你在詹金斯的工作方式,事情可能会变得复杂:

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

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

您的错误:“无法为发布设置创建临时文件。xml:权限被拒绝”。所以检查你的权利!看,我给了他文件settings.xmlmaven和maven用户tomcat运行以及其他工具的权限。还有其他想法吗……你还有这个问题吗?“如果是这样,我想我有办法解决你的问题。”杰迪森,你的办法是什么?我有类似的问题(很快就会贴出来),为你修正了否决票。因此,到处都是欺负者,他们什么也不做,只是到处乱投别人的票。
[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