美文网首页
Jenkins编译maven报错

Jenkins编译maven报错

作者: 啊哈_0042 | 来源:发表于2019-06-23 11:14 被阅读0次

    每次新的环境总会出现大大小小的问题

    <pre class="console-output" style="box-sizing: border-box; white-space: pre-wrap; word-wrap: break-word; margin: 0px; color: rgb(51, 51, 51); font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;">+ mvn clean install
    [INFO] Scanning for projects...
    Downloading from nexus: [http://192.168.111.191:8081/nexus/content/groups/public/com/ch/ec/ec-apron/1.1.3-prod/ec-apron-1.1.3-prod.pom](http://192.168.111.191:8081/nexus/content/groups/public/com/ch/ec/ec-apron/1.1.3-prod/ec-apron-1.1.3-prod.pom)
    [WARNING] Failed to create parent directories for tracking file /u02/jenkins/.m2/repository/com/ch/ec/ec-apron/1.1.3-prod/ec-apron-1.1.3-prod.pom.lastUpdated
    [ERROR] [ERROR] Some problems were encountered while processing the POMs:
    [FATAL] Non-resolvable parent POM for com.dynamic:ECFlightDynamic:1.0.0: Could not transfer artifact com.ch.ec:ec-apron:pom:1.1.3-prod from/to nexus ([http://192.168.111.191:8081/nexus/content/groups/public/](http://192.168.111.191:8081/nexus/content/groups/public/)): /u02/jenkins/.m2/repository/com/ch/ec/ec-apron/1.1.3-prod/ec-apron-1.1.3-prod.pom.part.lock (没有那个文件或目录) and 'parent.relativePath' points at wrong local POM @ line 14, column 11
     @ 
    [ERROR] The build could not read 1 project -> [Help 1]
    [ERROR]   
    [ERROR]   The project com.dynamic:ECFlightDynamic:1.0.0 (/var/lib/jenkins/workspace/APPRoutine_LineDeploy/pom.xml) has 1 error
    [ERROR]     Non-resolvable parent POM for com.dynamic:ECFlightDynamic:1.0.0: Could not transfer artifact com.ch.ec:ec-apron:pom:1.1.3-prod from/to nexus ([http://192.168.111.191:8081/nexus/content/groups/public/](http://192.168.111.191:8081/nexus/content/groups/public/)): /u02/jenkins/.m2/repository/com/ch/ec/ec-apron/1.1.3-prod/ec-apron-1.1.3-prod.pom.part.lock (没有那个文件或目录) and 'parent.relativePath' points at wrong local POM @ line 14, column 11 -> [Help 2]
    [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/ProjectBuildingException](http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException)
    [ERROR] [Help 2] [http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException](http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException)</pre>
    
    

    遇到这样的问题也是头疼。机器上面可以拉jar,使用jenkins就无法拉新jar包。脑壳痛啊脑壳痛样
    //修改用户为root或其他

    vim /etc/sysconfig/jenkins
    
    图片.png
    //重启jenkins
    systemctl restart jenkins
    

    再次编译就成功了

    相关文章

      网友评论

          本文标题:Jenkins编译maven报错

          本文链接:https://www.haomeiwen.com/subject/dksnqctx.html