• Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.1
    • Fix Version/s: 2.2-beta-2
    • Component/s: None
    • Labels:
    • Environment:
      Linux Unbuntu, 1.5_07 jdk


      I have a maven 1 project that builds a jar file called pps-3.0.2.jar.
      The jar (and it's pom) are moved into my legacy style repository.

      I have a maven 2 project that depends on pps-3.0.2. It compiles and
      tests the code fine. During the assembly it is suppose to creates a
      directory of dependent jar files and it blows up with the message:
      Error building POM (may not be this project's POM).

      Project ID: ebs:pps
      POM Location: /home/chelck/.m2/repository/ebs/pps/3.0.2/pps-3.0.2.pom

      Reason: Not a v4.0.0 POM.
      In a sense the error is correct: pps-3.0.2.pom is not v4.0.0 – it's
      legacy. So why is mvn trying to build it's POM and why doesn't it
      realize it's a legacy pom?

      I see this with maven 2.0.4,2.0.6, and 2.0.7.

      Here is a (2.0.4) stack trace:

      [DEBUG] Trace
      org.apache.maven.lifecycle.LifecycleExecutionException: Failed to create assembly: Error retrieving POM of module-dependency: ebs:pps:jar:3.0.2; Reason: Not a v4.0.0 POM.
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
      at org.apache.maven.DefaultMaven.doExecute(
      at org.apache.maven.DefaultMaven.execute(
      at org.apache.maven.cli.MavenCli.main(
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(
      at java.lang.reflect.Method.invoke(
      at org.codehaus.classworlds.Launcher.launchEnhanced(
      at org.codehaus.classworlds.Launcher.launch(
      at org.codehaus.classworlds.Launcher.mainWithExitCode(
      at org.codehaus.classworlds.Launcher.main(
      Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to create assembly: Error retrieving POM of module-dependency: ebs:pps:jar:3.0.2; Reason: Not a v4.0.0 POM.
      at org.apache.maven.plugin.assembly.mojos.AbstractAssemblyMojo.execute(
      at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
      ... 16 more
      Caused by: org.apache.maven.plugin.assembly.archive.ArchiveCreationException: Error retrieving POM of module-dependency: ebs:pps:jar:3.0.2; Reason: Not a v4.0.0 POM.
      at org.apache.maven.plugin.assembly.archive.task.AddDependencySetsTask.addDependencySet(
      at org.apache.maven.plugin.assembly.archive.task.AddDependencySetsTask.execute(
      at org.apache.maven.plugin.assembly.archive.phase.DependencySetAssemblyPhase.execute(
      at org.apache.maven.plugin.assembly.archive.DefaultAssemblyArchiver.createArchive(
      at org.apache.maven.plugin.assembly.mojos.AbstractAssemblyMojo.execute(
      ... 18 more
      Caused by: org.apache.maven.project.InvalidProjectModelException: Not a v4.0.0 POM.
      at org.apache.maven.project.DefaultMavenProjectBuilder.readModel(
      at org.apache.maven.project.DefaultMavenProjectBuilder.readModel(
      at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(
      at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(
      at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(
      at org.apache.maven.plugin.assembly.archive.task.AddDependencySetsTask.addDependencySet(
      ... 22 more

        Issue Links


          Christopher Helck created issue -
          John Casey made changes -
          Field Original Value New Value
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Closed [ 6 ]
          Assignee John Casey [ jdcasey ]
          Fix Version/s 2.2-beta-2 [ 13507 ]
          Zach Legein made changes -
          Link This issue is related to MASSEMBLY-254 [ MASSEMBLY-254 ]
          John Casey made changes -
          Fix Version/s 2.2-beta-3 [ 13507 ]
          Fix Version/s 2.2-beta-2 [ 14027 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 09:09:00 UTC 2015 [ 1428224940639 ]
          Mark Thomas made changes -
          Workflow jira [ 12717177 ] Default workflow, editable Closed status [ 12760869 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 22:33:31 UTC 2015 [ 1428273211083 ]
          Mark Thomas made changes -
          Workflow jira [ 12955126 ] Default workflow, editable Closed status [ 12992301 ]


            • Assignee:
              John Casey
              Christopher Helck
            • Votes:
              1 Vote for this issue
              2 Start watching this issue


              • Created: