简体   繁体   English

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

[英]jenkins Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.3.2:prepare (default-cli)

[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

I need help. 我需要帮助。 When built a snapshot does not give me problems, but if I want to generate a release I get the above log. 生成快照时不会给我带来问题,但是如果我想生成一个发行版,则会得到上面的日志。 I have the jenkins 1.548 maven 3.1.1 nexus 2.7.0-0 我有詹金斯1.548 Maven 3.1.1连结2.7.0-0

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

Check the following locations for any mention or overrides of settings.xml file: 检查以下位置是否有任何提及或覆盖settings.xml文件:

  • Jenkins 詹金斯
    • instance-level config 实例级配置
      • general Maven section Maven总区
      • Maven release plugin section Maven发布插件部分
    • job-level config 作业级配置
      • general Maven section Maven总区
      • Maven release plugin section Maven发布插件部分
  • pom.xml file pom.xml文件
    • maven-release-plugin section maven-release-plugin部分
    • profiles section 型材部分

In addition, things can get fussy depending on how you're running the job in Jenkins: 另外,事情可能变得繁琐,这取决于您在Jenkins中的工作方式:

  • freestyle job with Maven goals 具有Maven目标的自由式工作
  • Maven job using regular "Build" button with "release:prepare" goals 使用带有“发布:准备”目标的常规“构建”按钮进行Maven作业
  • Maven build using "Run Maven Release" button 使用“运行Maven版本”按钮进行Maven构建

Try experimenting with different job types. 尝试尝试不同的工作类型。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法执行目标 org.apache.maven.plugins:maven-release-plugin:2.5.3:prepare - Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.3:prepare 无法执行目标 org.apache.maven.plugins:maven-release-plugin:2.5.3 - Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.3 无法执行目标 org.apache.maven.plugins:maven-archetype-plugin:3.1.2:generate (default-cli) - Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.1.2:generate (default-cli) 无法执行目标org.apache.maven.plugins:maven-site-plugin:3.7:site(default-cli):常量池中的无效字节标记:18 - Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.7:site (default-cli): Invalid byte tag in constant pool: 18 无法执行目标 org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) - Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) 无法使用MAVEN进行编译并出现错误-无法执行目标org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile - Unable to Build using MAVEN with ERROR - Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile 无法在项目acme模块上执行目标org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile(default-compile):编译失败: - Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project acme-module: Compilation failure: 无法执行目标org.apache.maven.plugins:maven - Failed to execute goal org.apache.maven.plugins:maven 未能执行目标 org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile: 无效的目标版本:11 - Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile : invalid target release: 11 Maven - 未能执行目标 org.apache.maven.plugins:maven-clean-plugin:2.4.1:clean - Maven - Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.4.1:clean
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM