org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs: [FATAL] Non-resolvable parent POM: Could not transfer artifact <name-stuffs-removed>-pom:pom:1.0-SNAPSHOT from/to server.company.com (https://server.company.com/snapshot/): Not authorized. and 'parent.relativePath' points at wrong local POM @ line 3, column 10

Jenkins JIRA | Petteri Kauko | 5 years ago
  1. 0

    We have Artifactory behind apache httpd (that requires authentication). When I try to build a maven project against an empty local repository, I get the stack trace that will be below. This happens both with maven2 and maven3. Also on a different maven project, that depends on a release version parent, this also happens. On the web-server log I can that Jenkins contacts the server, gets 401 -Authorization Required and does not even try to authorize. The maven project builds successfully in shell. Also if I build it in shell, and then delete everything but the parent pom(s), then the job in Jenkins builds fine downloading the required artifacts. So the problem seems to only affect downloadin the parent -artifacts. Parsing POMs Failed to transfer Could not transfer metadata <name-stuffs removed>:pom:1.0-SNAPSHOT/maven-metadata.xml from/to server.company.com (https://server.company.com/snapshot/): Not authorized. Failed to transfer Could not transfer artifact <name-stuffs-removed>-pom:pom:1.0-SNAPSHOT from/to server.company.com (https://server.company.com/snapshot/): Not authorized. ERROR: Failed to parse POMs org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs: [FATAL] Non-resolvable parent POM: Could not transfer artifact <name-stuffs-removed>-pom:pom:1.0-SNAPSHOT from/to server.company.com (https://server.company.com/snapshot/): Not authorized. and 'parent.relativePath' points at wrong local POM @ line 3, column 10 at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:339) at hudson.maven.MavenEmbedder.buildProjects(MavenEmbedder.java:361) at hudson.maven.MavenEmbedder.readProjects(MavenEmbedder.java:331) at hudson.maven.MavenEmbedder.readProject(MavenEmbedder.java:322) at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1244) at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1065) at hudson.FilePath.act(FilePath.java:783) at hudson.FilePath.act(FilePath.java:765) at hudson.maven.MavenModuleSetBuild$RunnerImpl.parsePoms(MavenModuleSetBuild.java:930) at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:658) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:462) at hudson.model.Run.run(Run.java:1404) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:481) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) Description set: Finished: FAILURE

    Jenkins JIRA | 5 years ago | Petteri Kauko
    org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs: [FATAL] Non-resolvable parent POM: Could not transfer artifact <name-stuffs-removed>-pom:pom:1.0-SNAPSHOT from/to server.company.com (https://server.company.com/snapshot/): Not authorized. and 'parent.relativePath' points at wrong local POM @ line 3, column 10
  2. 0

    We have Artifactory behind apache httpd (that requires authentication). When I try to build a maven project against an empty local repository, I get the stack trace that will be below. This happens both with maven2 and maven3. Also on a different maven project, that depends on a release version parent, this also happens. On the web-server log I can that Jenkins contacts the server, gets 401 -Authorization Required and does not even try to authorize. The maven project builds successfully in shell. Also if I build it in shell, and then delete everything but the parent pom(s), then the job in Jenkins builds fine downloading the required artifacts. So the problem seems to only affect downloadin the parent -artifacts. Parsing POMs Failed to transfer Could not transfer metadata <name-stuffs removed>:pom:1.0-SNAPSHOT/maven-metadata.xml from/to server.company.com (https://server.company.com/snapshot/): Not authorized. Failed to transfer Could not transfer artifact <name-stuffs-removed>-pom:pom:1.0-SNAPSHOT from/to server.company.com (https://server.company.com/snapshot/): Not authorized. ERROR: Failed to parse POMs org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs: [FATAL] Non-resolvable parent POM: Could not transfer artifact <name-stuffs-removed>-pom:pom:1.0-SNAPSHOT from/to server.company.com (https://server.company.com/snapshot/): Not authorized. and 'parent.relativePath' points at wrong local POM @ line 3, column 10 at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:339) at hudson.maven.MavenEmbedder.buildProjects(MavenEmbedder.java:361) at hudson.maven.MavenEmbedder.readProjects(MavenEmbedder.java:331) at hudson.maven.MavenEmbedder.readProject(MavenEmbedder.java:322) at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1244) at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1065) at hudson.FilePath.act(FilePath.java:783) at hudson.FilePath.act(FilePath.java:765) at hudson.maven.MavenModuleSetBuild$RunnerImpl.parsePoms(MavenModuleSetBuild.java:930) at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:658) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:462) at hudson.model.Run.run(Run.java:1404) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:481) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) Description set: Finished: FAILURE

    Jenkins JIRA | 5 years ago | Petteri Kauko
    org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs: [FATAL] Non-resolvable parent POM: Could not transfer artifact <name-stuffs-removed>-pom:pom:1.0-SNAPSHOT from/to server.company.com (https://server.company.com/snapshot/): Not authorized. and 'parent.relativePath' points at wrong local POM @ line 3, column 10
  3. 0

    Hudson build fail: Non-resolvable parent POM

    Stack Overflow | 6 years ago | Nicolas
    org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs: [FATAL] Non-resolvable parent POM: Could not find artifact com.rha:MyProject:pom:1.0-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 9, column 10
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Jenkins/Hudson - Cannot build multimodule project

    Stack Overflow | 5 years ago | Tomas
    org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs: [FATAL] Non-resolvable parent POM: Failure to find cz.cvut.fit.wst:wst-root-pom:pom:1.0 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 3, column 10
  6. 0

    'mvn -n' does not work after update to 1.393

    Google Groups | 6 years ago | Oli
    org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs: [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 60, column 15 [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ line 69, column 15 [ERROR] Child module /home/hudson/.hudson/jobs/opm_OpmLibWS/workspace/../OpmCommon of /home/hudson/.hudson/jobs/opm_OpmLibWS/workspace/pom.xml does not exist @ [ERROR] Child module /home/hudson/.hudson/jobs/opm_OpmLibWS/workspace/../OpmChannelWs of /home/hudson/.hudson/jobs/opm_OpmLibWS/workspace/pom.xml does not exist @ [ERROR] Child module /home/hudson/.hudson/jobs/opm_OpmLibWS/workspace/../OpmClientCommon of /home/hudson/.hudson/jobs/opm_OpmLibWS/workspace/pom.xml does not exist @ [ERROR] Child module /home/hudson/.hudson/jobs/opm_OpmLibWS/workspace/../DialogManager of /home/hudson/.hudson/jobs/opm_OpmLibWS/workspace/pom.xml does not exist @ [ERROR] Child module /home/hudson/.hudson/jobs/opm_OpmLibWS/workspace/../SpreadsheetBridge of /home/hudson/.hudson/jobs/opm_OpmLibWS/workspace/pom.xml does not exist @ [ERROR] Child module /home/hudson/.hudson/jobs/opm_OpmLibWS/workspace/../OPMCalcListener of /home/hudson/.hudson/jobs/opm_OpmLibWS/workspace/pom.xml does not exist @ [ERROR] Child module /home/hudson/.hudson/jobs/opm_OpmLibWS/workspace/../CalcBridge of /home/hudson/.hudson/jobs/opm_OpmLibWS/workspace/pom.xml does not exist @ [WARNING] 'reporting.plugins.plugin.version' for org.apache.maven.plugins:maven-jxr-plugin is missing. @ line 304, column 15 [WARNING] 'reporting.plugins.plugin.version' for org.apache.maven.plugins:maven-pmd-plugin is missing. @ line 316, column 15 [WARNING] 'reporting.plugins.plugin.version' for org.codehaus.mojo:findbugs-maven-plugin is missing. @ line 338, column 15

  1. davidvanlaatum 5 times, last 3 weeks ago
  2. Adarro 1 times, last 3 months ago
  3. davidvanlaatum 3 times, last 5 months ago
1 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.apache.maven.project.ProjectBuildingException

    Some problems were encountered while processing the POMs: [FATAL] Non-resolvable parent POM: Could not transfer artifact <name-stuffs-removed>-pom:pom:1.0-SNAPSHOT from/to server.company.com (https://server.company.com/snapshot/): Not authorized. and 'parent.relativePath' points at wrong local POM @ line 3, column 10

    at org.apache.maven.project.DefaultProjectBuilder.build()
  2. Maven
    DefaultProjectBuilder.build
    1. org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:339)
    1 frame
  3. Hudson Maven Embedder
    MavenModuleSetBuild$PomParser.invoke
    1. hudson.maven.MavenEmbedder.buildProjects(MavenEmbedder.java:361)
    2. hudson.maven.MavenEmbedder.readProjects(MavenEmbedder.java:331)
    3. hudson.maven.MavenEmbedder.readProject(MavenEmbedder.java:322)
    4. hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1244)
    5. hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1065)
    5 frames
  4. Hudson
    FilePath.act
    1. hudson.FilePath.act(FilePath.java:783)
    2. hudson.FilePath.act(FilePath.java:765)
    2 frames
  5. Hudson Maven Embedder
    MavenModuleSetBuild$RunnerImpl.doRun
    1. hudson.maven.MavenModuleSetBuild$RunnerImpl.parsePoms(MavenModuleSetBuild.java:930)
    2. hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:658)
    2 frames
  6. Hudson
    Run.run
    1. hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:462)
    2. hudson.model.Run.run(Run.java:1404)
    2 frames
  7. Hudson Maven Embedder
    MavenModuleSetBuild.run
    1. hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:481)
    1 frame
  8. Hudson
    Executor.run
    1. hudson.model.ResourceController.execute(ResourceController.java:88)
    2. hudson.model.Executor.run(Executor.java:238)
    2 frames