Yeah, it looks like we need to improve the validation of descriptors. None of the assembly mojos should really work without an assembly id.
Would you mind filing an issue at: http://jira.codehaus.org/browse/MASSEMBLY? That way, you can watch/vote for the issue, and see when it gets corrected. Also, if you're binding the assembly plugin into your build lifecycle for a project, you might want to consider using assembly:single, since it doesn't force a forked execution of the project's build. It will be a little more performant for you most likely. -john On Fri, Apr 11, 2008 at 12:44 PM, Harper, Brad <[EMAIL PROTECTED]> wrote: > Ah, thanks. > > I've since found that "mvn assembly:attached" works, both from the > command line and when run as part of a maven build lifecycle [with the > same assembly descriptor.] > > Is the assembly id being inferred or derived from the project then, when > running the 'attached' goal? > > I suggest that the error message be improved for this use case, at the > least. Since I've clearly not supplied an assembly id, it seems that > the message refers to multiple [internal] uses of the assembly id and > relates more to implementation of the plugin and less to something that > the user has knowledge of [and can control]. > > Thanks again. > > Brad > > > -----Original Message----- > > From: John Casey [mailto:[EMAIL PROTECTED] > > Sent: Friday, April 11, 2008 10:36 AM > > To: Maven Users List > > Subject: Re: assembly:assembly failure > > > > You need to specify <id>assembly-name</id> inside your > > assembly descriptors. > > > > -john > > > > On Apr 10, 2008, at 8:34 AM, Harper, Brad wrote: > > > > > Anyone have thoughts on what's behind the following error? > > > > > > ... > > > [ERROR] BUILD FAILURE > > > [INFO] ------------------ > > > [INFO] The assembly id null is used more than once. > > > ... > > > > > > I see this error when testing a garden-variety assembly from the > > > command line > > > > > > % mvn assembly:assembly -Ddescriptor=src/main/assembly/release.xml > > > -Ddocument.version=2.4.15 > > > > > > The assembly descriptor names only two files: the project's war > > > artifact and a document, which references the property > > > ${document.version} to get the correct file. > > > > > > Brad Harper > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > --- > > John Casey > > Committer and PMC Member, Apache Maven > > mail: jdcasey at commonjava dot org > > blog: http://www.ejlife.net/blogs/john > > rss: http://feeds.feedburner.com/ejlife/john > > > > > > > > --------------------------------------------------------------------- > 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