You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jake Pezaro <Ja...@vcint.com> on 2006/05/05 18:16:48 UTC

M2: Assembly Plugin Breaks Module Build

We have a number of projects which we build nightly using maven.  I have
grouped these together using modules so that i can build & deploy them
all at once with one command (mvn assembly:assembly deploy).  

The problem is that the build fails because the assembly:assembly target
requires all projects to have an assembly defined.  Is there a way
around this?

thanks

jake



______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

Re: M2: Assembly Plugin Breaks Module Build

Posted by dan tran <da...@gmail.com>.
Jake, the below structure works for me


parent
  pom.xml
  child-1
    pom.xml
  child-2
    pom.xml
  .....

  child-assembly
    pom.xml  <---- bind assembly:attached to package phase   ( you need to
get the assembly plugin from svn and build it your self  )


On 5/5/06, Jake Pezaro <Ja...@vcint.com> wrote:
>
> thanks dan.  my assembly config is in a parent pom, and when i try to
> configure the binding (i was using assembly:assembly, don't know if that
> make a difference) i could not install or deploy the pom due to the below
> error.  is there a way to stop stop this or do i need to configure the
> assembly in the project poms (rather than in the parent).
>
> [INFO] [assembly:assembly {execution: default}]
> [INFO]
> ------------------------------------------------------------------------
> ----
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> ----
> [INFO] Error creating assembly
>
> Embedded error: c:\dev\workspace\ServerAppPom\target isn't a directory
>
> jake
>
> -----Original Message-----
> From: dan tran [mailto:dantran@gmail.com]
> Sent: Fri 5/5/2006 6:31 PM
> To: Maven Users List
> Subject: Re: M2: Assembly Plugin Breaks Module Build
>
> for project that requires assembly, bind assembly:attached to the package
> phase, then you run
>
> maven deploy
>
> -D
>
>
> On 5/5/06, Jake Pezaro <Ja...@vcint.com> wrote:
> >
> > We have a number of projects which we build nightly using maven.  I have
> > grouped these together using modules so that i can build & deploy them
> > all at once with one command (mvn assembly:assembly deploy).
> >
> > The problem is that the build fails because the assembly:assembly target
> > requires all projects to have an assembly defined.  Is there a way
> > around this?
> >
> > thanks
> >
> > jake
> >
> >
> >
> > ______________________________________________________________________
> > This email has been scanned by the MessageLabs Email Security System.
> > For more information please visit http://www.messagelabs.com/email
> > ______________________________________________________________________
> >
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email
> ______________________________________________________________________
>
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email
> ______________________________________________________________________
>

RE: M2: Assembly Plugin Breaks Module Build

Posted by Jake Pezaro <Ja...@vcint.com>.
thanks dan.  my assembly config is in a parent pom, and when i try to configure the binding (i was using assembly:assembly, don't know if that make a difference) i could not install or deploy the pom due to the below error.  is there a way to stop stop this or do i need to configure the assembly in the project poms (rather than in the parent).

[INFO] [assembly:assembly {execution: default}]
[INFO]
------------------------------------------------------------------------
----
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
----
[INFO] Error creating assembly

Embedded error: c:\dev\workspace\ServerAppPom\target isn't a directory

jake

-----Original Message-----
From: dan tran [mailto:dantran@gmail.com]
Sent: Fri 5/5/2006 6:31 PM
To: Maven Users List
Subject: Re: M2: Assembly Plugin Breaks Module Build
 
for project that requires assembly, bind assembly:attached to the package
phase, then you run

maven deploy

-D


On 5/5/06, Jake Pezaro <Ja...@vcint.com> wrote:
>
> We have a number of projects which we build nightly using maven.  I have
> grouped these together using modules so that i can build & deploy them
> all at once with one command (mvn assembly:assembly deploy).
>
> The problem is that the build fails because the assembly:assembly target
> requires all projects to have an assembly defined.  Is there a way
> around this?
>
> thanks
>
> jake
>
>
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email
> ______________________________________________________________________
>

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

Re: M2: Assembly Plugin Breaks Module Build

Posted by dan tran <da...@gmail.com>.
for project that requires assembly, bind assembly:attached to the package
phase, then you run

maven deploy

-D


On 5/5/06, Jake Pezaro <Ja...@vcint.com> wrote:
>
> We have a number of projects which we build nightly using maven.  I have
> grouped these together using modules so that i can build & deploy them
> all at once with one command (mvn assembly:assembly deploy).
>
> The problem is that the build fails because the assembly:assembly target
> requires all projects to have an assembly defined.  Is there a way
> around this?
>
> thanks
>
> jake
>
>
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email
> ______________________________________________________________________
>