Okay, I've found the problem; it's in the assembly plugin, where I'm not using the correct method to retrieve the transitive POM set (there is one that allows "stub" models when it detects a non-4.0.0 POM, and another that doesn't). I'm fixing it now, but it won't be released for a little while (there are several more things that need to go into that release).
Thanks, and sorry for the inconvenience. -john On 5/8/07, Chris Helck <[EMAIL PROTECTED]> wrote:
I'm using maven 2.0.4. Assembly plugin is 2.2-beta-1. I'll be happy to supply more data it needed. Stack trace is below. Thanks, Christopher Helck [INFO] ------------------------------------------------------------------------ [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(Default LifecycleExecutor.java:559) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifec ycle(DefaultLifecycleExecutor.java:475) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL ifecycleExecutor.java:454) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle Failures(DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec ycleExecutor.java:140) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) 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(Abst ractAssemblyMojo.java:302) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa nager.java:412) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default LifecycleExecutor.java:534) ... 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.addD ependencySet(AddDependencySetsTask.java:114) at org.apache.maven.plugin.assembly.archive.task.AddDependencySetsTask.exec ute(AddDependencySetsTask.java:90) at org.apache.maven.plugin.assembly.archive.phase.DependencySetAssemblyPhas e.execute(DependencySetAssemblyPhase.java:54) at org.apache.maven.plugin.assembly.archive.DefaultAssemblyArchiver.createA rchive(DefaultAssemblyArchiver.java:98) at org.apache.maven.plugin.assembly.mojos.AbstractAssemblyMojo.execute(Abst ractAssemblyMojo.java:278) ... 18 more Caused by: org.apache.maven.project.InvalidProjectModelException: Not a v4.0.0 POM. at org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMav enProjectBuilder.java:1299) at org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMav enProjectBuilder.java:1270) at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromReposit ory(DefaultMavenProjectBuilder.java:471) at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository( DefaultMavenProjectBuilder.java:225) at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository( DefaultMavenProjectBuilder.java:235) at org.apache.maven.plugin.assembly.archive.task.AddDependencySetsTask.addD ependencySet(AddDependencySetsTask.java:109) ... 22 more [INFO] ------------------------------------------------------------------------ [INFO] Total time: 8 seconds [INFO] Finished at: Tue May 08 14:49:00 EDT 2007 [INFO] Final Memory: 9M/18M [INFO] ------------------------------------------------------------------------ -----Original Message----- From: John Casey [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 08, 2007 12:22 PM To: Maven Users List Subject: Re: Assembly problem: Error "Not a v4.0.0 POM" Actually, the stacktrace for this error would be pretty valuable, just to see whether it's coming from the assembly plugin itself, or from maven's core...Maven's supposed to detect and ignore legacy poms. -john On 5/7/07, Chris Helck <[EMAIL PROTECTED]> wrote: > > I have an error that I don't understand. > > 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. > ---------------------------------------------------------------------- > - Running with -X doesn't supply any more usefull info. > > 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? > > Thanks, > Christopher Helck > > > ********************************************************************** > This communication and all information (including, but not limited to, > market prices/levels and data) contained therein (the "Information") > is for informational purposes only, is confidential, may be legally > privileged and is the intellectual property of ICAP plc and its > affiliates > ("ICAP") or third parties. No confidentiality or privilege is waived > or lost by any mistransmission. The Information is not, and should not > be construed as, an offer, bid or solicitation in relation to any > financial instrument or as an official confirmation of any transaction. > The Information is not warranted, including, but not limited, as to > completeness, timeliness or accuracy and is subject to change without > notice. ICAP assumes no liability for use or misuse of the > Information. All representations and warranties are expressly > disclaimed. The Information does not necessarily reflect the views of > ICAP. Access to the Information by anyone else other than the > recipient is unauthorized and any disclosure, copying, distribution or > any action taken or omitted to be taken in reliance on it is prohibited. > If > you receive this message in error, please immediately delete it and > all copies of it from your system, destroy any hard copies of it and > notify the sender. > ********************************************************************** > > -- John Casey --- Maven Developer (http://maven.apache.org) --- Blog: http://www.ejlife.net/blogs/buildchimp ********************************************************************** This communication and all information (including, but not limited to, market prices/levels and data) contained therein (the "Information") is for informational purposes only, is confidential, may be legally privileged and is the intellectual property of ICAP plc and its affiliates ("ICAP") or third parties. No confidentiality or privilege is waived or lost by any mistransmission. The Information is not, and should not be construed as, an offer, bid or solicitation in relation to any financial instrument or as an official confirmation of any transaction. The Information is not warranted, including, but not limited, as to completeness, timeliness or accuracy and is subject to change without notice. ICAP assumes no liability for use or misuse of the Information. All representations and warranties are expressly disclaimed. The Information does not necessarily reflect the views of ICAP. Access to the Information by anyone else other than the recipient is unauthorized and any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it is prohibited. If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. ********************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- John Casey --- Maven Developer (http://maven.apache.org) --- Blog: http://www.ejlife.net/blogs/buildchimp