You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Harper, Brad" <br...@epsiia.com> on 2008/04/10 14:34:22 UTC

assembly:assembly failure

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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: assembly:assembly failure

Posted by "Harper, Brad" <br...@epsiia.com>.
I'll be glad to submit an issue and I'll look at assembly:single. Thanks
for the response and suggestion. 

Brad

> -----Original Message-----
> From: John Casey [mailto:casey.john.d@gmail.com] 
> Sent: Friday, April 11, 2008 1:05 PM
> To: Maven Users List
> Subject: Re: assembly:assembly failure
> 
> 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 
> <br...@epsiia.com>
> 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:jdcasey@commonjava.org]
> > > 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: users-unsubscribe@maven.apache.org
> > > > For additional commands, e-mail: users-help@maven.apache.org
> > > >
> > >
> > > ---
> > > 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: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> 
> 
> --
> John Casey
> ---
> Maven Developer (http://maven.apache.org)
> ---
> Blog: http://www.ejlife.net/blogs/buildchimp
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: assembly:assembly failure

Posted by John Casey <ca...@gmail.com>.
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 <br...@epsiia.com>
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:jdcasey@commonjava.org]
> > 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: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> >
> > ---
> > 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


-- 
John Casey
---
Maven Developer (http://maven.apache.org)
---
Blog: http://www.ejlife.net/blogs/buildchimp

RE: assembly:assembly failure

Posted by "Harper, Brad" <br...@epsiia.com>.
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:jdcasey@commonjava.org] 
> 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: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> 
> ---
> 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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: assembly:assembly failure

Posted by John Casey <jd...@commonjava.org>.
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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>

---
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