hudson.util.IOException2: Cannot find parent: org.calgb:CalgbParentPom for project: org.calgb.util:Util:jar:1.0-SNAPSHOT

Jenkins JIRA | robdale | 9 years ago
  1. 0

    Scenario: I have a pom that is an organizational pom. It's the organization's super pom. It has a set of default values to be inherited by all projects. Two problems: 1. Via Job the project won't build at all. Maven can't find the external parent pom. It seems to completely ignore ~/.m2/settings.xml which configures a mirrorOf central. It still doesn't work even when the parent pom is installed locally. This is true of single or multimodule maven projects. started Updating https://subversion.../trunk At revision 7854 no change for https://subversion.../trunk since the previous build Parsing POMs ERROR: Failed to parse POMs hudson.util.IOException2: Cannot find parent: org.calgb:CalgbParentPom for project: org.calgb.util:Util:jar:1.0-SNAPSHOT at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:520) at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:457) at hudson.FilePath.act(FilePath.java:280) at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:239) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:182) at hudson.model.Run.run(Run.java:579) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:172) at hudson.model.ResourceController.execute(ResourceController.java:66) at hudson.model.Executor.run(Executor.java:62) Caused by: org.apache.maven.project.ProjectBuildingException: Cannot find parent: org.calgb:CalgbParentPom for project: org.calgb.util:Util:jar:1.0-SNAPSHOT at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1161) at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:674) at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:416) at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:192) at hudson.maven.MavenEmbedder.readProject(MavenEmbedder.java:269) at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:499) ... 8 more Caused by: org.apache.maven.project.ProjectBuildingException: POM 'org.calgb:CalgbParentPom' not found in repository: Unable to download the artifact from any repository org.calgb:CalgbParentPom:pom:1.0.0-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2) at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:513) at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1157) ... 13 more Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable to download the artifact from any repository org.calgb:CalgbParentPom:pom:1.0.0-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:136) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:63) at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:467) ... 14 more Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to download the artifact from any repository at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:260) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:124) ... 16 more finished: FAILURE 2. The module itself can build, BUT you have to locally install the organizational parent pom and either install locally all local dependencies or configure the local maven repository in the external pom. Again, settings.xml seems to be completely ignored. None of these problems exist if I don't reference the external parent pom. And it happens only within Hudson.

    Jenkins JIRA | 9 years ago | robdale
    hudson.util.IOException2: Cannot find parent: org.calgb:CalgbParentPom for project: org.calgb.util:Util:jar:1.0-SNAPSHOT
  2. 0

    Error building trunk [moved]

    GitHub | 4 years ago | jyemin
    org.apache.maven.reactor.MavenExecutionException: Cannot find parent: com.google.code.morphia:morphia-parent for project: com.google.code.morphia:morphia:jar:1.00-SNAPSHOT for project com.google.code.morphia:morphia:jar:1.00-SNAPSHOT
  3. 0

    Installation issue

    GitHub | 2 years ago | ioudas210
    org.apache.maven.reactor.MavenExecutionException: Cannot find parent: org.alfresco.maven:alfresco-sdk-parent for project: com.alvexcore.demo:alvex-datagrid-repo:amp:1.0-SNAPSHOT for project com.alvexcore.demo:alvex-datagrid-repo:amp:1.0-SNAPSHOT
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [CAS-1469] Repository with ID: 'jasig-repository' not accessible

    GitHub | 2 years ago | mmoayyed
    org.apache.maven.reactor.MavenExecutionException: Cannot find parent: org.jasig.parent:jasig-parent for project: org.jasig.cas:cas-server:pom:3.4.12.1 for project org.jasig.cas:cas-server:pom:3.4.12.1
  6. 0

    Basic Maven Help -- Can't Compile

    Stack Overflow | 6 years ago | user489041
    org.apache.maven.reactor.MavenExecutionException: Cannot find parent: org.beginningee6.book:chapters for project: org.beginningee6.book:chapter02:jar:2.0 for project org.beginningee6.book:chapter02:jar:2.0

  1. Александр Пастухов 17 times, last 7 months ago
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.wagon.ResourceDoesNotExistException

    Unable to download the artifact from any repository

    at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact()
  2. Maven
    DefaultMavenProjectBuilder.build
    1. org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:260)
    2. org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:124)
    3. org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:63)
    4. org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:467)
    5. org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1157)
    6. org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:674)
    7. org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:416)
    8. org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:192)
    8 frames
  3. Hudson Maven Embedder
    MavenModuleSetBuild$PomParser.invoke
    1. hudson.maven.MavenEmbedder.readProject(MavenEmbedder.java:269)
    2. hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:499)
    3. hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:457)
    3 frames
  4. Hudson
    FilePath.act
    1. hudson.FilePath.act(FilePath.java:280)
    1 frame
  5. Hudson Maven Embedder
    MavenModuleSetBuild$RunnerImpl.doRun
    1. hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:239)
    1 frame
  6. Hudson
    Run.run
    1. hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:182)
    2. hudson.model.Run.run(Run.java:579)
    2 frames
  7. Hudson Maven Embedder
    MavenModuleSetBuild.run
    1. hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:172)
    1 frame
  8. Hudson
    Executor.run
    1. hudson.model.ResourceController.execute(ResourceController.java:66)
    2. hudson.model.Executor.run(Executor.java:62)
    2 frames