美文网首页
Jenkins打包报错:(No such file or dir

Jenkins打包报错:(No such file or dir

作者: 南瓜pump | 来源:发表于2022-05-31 09:22 被阅读0次

    Jenkins打包报错:(No such file or directory) and 'parent.relativePath' points at no local POM

    <pre class="console-output" style="box-sizing: inherit; white-space: pre-wrap; overflow-wrap: break-word; margin: 0px; font-size: var(--font-size-monospace); color: rgb(51, 51, 51); 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; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">Failed to transfer Could not transfer artifact org.springframework.cloud:spring-cloud-build:pom:2.3.1.RELEASE from/to mirror ([https://maven.aliyun.com/nexus/content/groups/public](https://maven.aliyun.com/nexus/content/groups/public)): /usr/lib/maven_repository/org/springframework/cloud/spring-cloud-build/2.3.1.RELEASE/spring-cloud-build-2.3.1.RELEASE.pom.part.lock (No such file or directory)
    Failed to transfer Could not transfer artifact org.springframework.cloud:spring-cloud-build:pom:2.3.1.RELEASE from/to rdc-releases ([https://packages.aliyun.com/maven/repository/2113648-release-2YNDPX/](https://packages.aliyun.com/maven/repository/2113648-release-2YNDPX/)): /usr/lib/maven_repository/org/springframework/cloud/spring-cloud-build/2.3.1.RELEASE/spring-cloud-build-2.3.1.RELEASE.pom.part.lock (No such file or directory)
    ERROR: Failed to parse POMs
    org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:
    [FATAL] Non-resolvable parent POM for *******:***: Could not transfer artifact org.springframework.cloud:spring-cloud-build:pom:2.3.1.RELEASE from/to mirror ([https://maven.aliyun.com/nexus/content/groups/public](https://maven.aliyun.com/nexus/content/groups/public)): /usr/lib/maven_repository/org/springframework/cloud/spring-cloud-build/2.3.1.RELEASE/spring-cloud-build-2.3.1.RELEASE.pom.part.lock (No such file or directory) and 'parent.relativePath' points at no local POM @ line 5, column 13
    
        at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:397)
        at hudson.maven.MavenEmbedder.buildProjects(MavenEmbedder.java:370)
        at hudson.maven.MavenEmbedder.readProjects(MavenEmbedder.java:340)
        at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1330)
        at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1124)
        at hudson.FilePath.act(FilePath.java:1200)
        at hudson.FilePath.act(FilePath.java:1183)
        at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.parsePoms(MavenModuleSetBuild.java:985)
        at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:689)
        at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:522)
        at hudson.model.Run.execute(Run.java:1896)
        at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543)
        at hudson.model.ResourceController.execute(ResourceController.java:101)
        at hudson.model.Executor.run(Executor.java:442)</pre>
    
    

    可能是因为maven配置修改了本地仓库的路径,而jenkins没有该路径的操作权限,需要修改一下路径的权限即可:

    chmod -R o+r+w mvn_local
    chmod o+x+w mvn_local
    

    相关文章

      网友评论

          本文标题:Jenkins打包报错:(No such file or dir

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