You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by fred flinta <qf...@hotmail.com> on 2006/05/02 15:44:44 UTC

Assembly one of the modules

Hi all!

I'm trying to run the assembly for one of my modules, but it seems that 
Maven forces me to define an assembly descriptor for each module.

My system looks like:

/pom.xml
/core/pom.xml
/core/src/..
/client/pom.xml
/client/src/..
/client/src/main/assembly

Running "mvn assemly:assembly" in the "client" module works fine!

When running the "mvn assemly:assembly" at the top level Maven states:

[INFO] [assembly:assembly]
[INFO] 
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] 
------------------------------------------------------------------------
[INFO] No assembly descriptors found.
[INFO] 
------------------------------------------------------------------------

What have I missed? .. How do I create create distribusitions for some of 
may modules with many modules?


/ Fred

_________________________________________________________________
Chat: Ha en fest på Habbo Hotel 
http://habbohotel.msn.se/habbo/sv/channelizer Checka in här!


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


Re: Assembly one of the modules

Posted by dan tran <da...@gmail.com>.
you need to use maven-assembly-plugin-2.1-SNAPSHOT and  bind assembly:attach
to package phase

-D


On 5/2/06, Tom Huybrechts <to...@gmail.com> wrote:
>
> You could bind the assembly:assembly goal to a well known phase in the
> client pom (e.g. package). If you then run 'mvn
> package/install/deploy' on the parent, the assembly will generated in
> the client, but not in any of the other modules.
>
> Tom
>
> On 5/2/06, fred flinta <qf...@hotmail.com> wrote:
> >
> > Hi all!
> >
> > I'm trying to run the assembly for one of my modules, but it seems that
> > Maven forces me to define an assembly descriptor for each module.
> >
> > My system looks like:
> >
> > /pom.xml
> > /core/pom.xml
> > /core/src/..
> > /client/pom.xml
> > /client/src/..
> > /client/src/main/assembly
> >
> > Running "mvn assemly:assembly" in the "client" module works fine!
> >
> > When running the "mvn assemly:assembly" at the top level Maven states:
> >
> > [INFO] [assembly:assembly]
> > [INFO]
> > ------------------------------------------------------------------------
> > [ERROR] BUILD FAILURE
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] No assembly descriptors found.
> > [INFO]
> > ------------------------------------------------------------------------
> >
> > What have I missed? .. How do I create create distribusitions for some
> of
> > may modules with many modules?
> >
> >
> > / Fred
> >
> > _________________________________________________________________
> > Chat: Ha en fest på Habbo Hotel
> > http://habbohotel.msn.se/habbo/sv/channelizer Checka in här!
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: Assembly one of the modules

Posted by dan tran <da...@gmail.com>.
there are only 2 outstandding issues left before 2.1, so I guess a new
release is comming soon.

http://jira.codehaus.org/secure/IssueNavigator.jspa?reset=true&mode=hide&sorter/order=DESC&sorter/field=priority&resolution=-1&pid=11126&fixfor=12219

However, you can always cut a internal release by fetching the latest from
svn.

-D


On 5/3/06, Dario Luis Coneglian Oliveros <ol...@cpqd.com.br> wrote:
>
> Any idea when a new version of the maven-assembly-plugin will be released
> ?
> Thanks,
> Dário
>
> fred flinta wrote:
>
> >
> > Thanks,
> >
> > yes, it works the way you said. It resulted in the following pom:
> >
> > ...
> >   <plugin>
> >    <artifactId>maven-assembly-plugin</artifactId>
> >    <executions>
> >     <execution>
> >      <phase>package</phase>
> >      <configuration>
> >       <descriptors>
> >        <descriptor>src/main/assembly/dep.xml</descriptor>
> >       </descriptors>
> >      </configuration>
> >      <goals>
> >       <goal>assembly</goal>
> >      </goals>
> >     </execution>
> >    </executions>
> >   </plugin>
> > ...
> >
> > Br / Fred
> >
> >
> >> From: "Tom Huybrechts" <to...@gmail.com>
> >> Reply-To: "Maven Users List" <us...@maven.apache.org>
> >> To: "Maven Users List" <us...@maven.apache.org>
> >> Subject: Re: Assembly one of the modules
> >> Date: Tue, 2 May 2006 16:35:44 +0200
> >>
> >> You could bind the assembly:assembly goal to a well known phase in the
> >> client pom (e.g. package). If you then run 'mvn
> >> package/install/deploy' on the parent, the assembly will generated in
> >> the client, but not in any of the other modules.
> >>
> >> Tom
> >>
> >> On 5/2/06, fred flinta <qf...@hotmail.com> wrote:
> >>
> >>>
> >>> Hi all!
> >>>
> >>> I'm trying to run the assembly for one of my modules, but it seems
> that
> >>> Maven forces me to define an assembly descriptor for each module.
> >>>
> >>> My system looks like:
> >>>
> >>> /pom.xml
> >>> /core/pom.xml
> >>> /core/src/..
> >>> /client/pom.xml
> >>> /client/src/..
> >>> /client/src/main/assembly
> >>>
> >>> Running "mvn assemly:assembly" in the "client" module works fine!
> >>>
> >>> When running the "mvn assemly:assembly" at the top level Maven states:
> >>>
> >>> [INFO] [assembly:assembly]
> >>> [INFO]
> >>>
> ------------------------------------------------------------------------
> >>>
> >>> [ERROR] BUILD FAILURE
> >>> [INFO]
> >>>
> ------------------------------------------------------------------------
> >>>
> >>> [INFO] No assembly descriptors found.
> >>> [INFO]
> >>>
> ------------------------------------------------------------------------
> >>>
> >>>
> >>> What have I missed? .. How do I create create distribusitions for
> >>> some of
> >>> may modules with many modules?
> >>>
> >>>
> >>> / Fred
> >>>
> >>> _________________________________________________________________
> >>> Chat: Ha en fest på Habbo Hotel
> >>> http://habbohotel.msn.se/habbo/sv/channelizer Checka in här!
> >>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >>> For additional commands, e-mail: users-help@maven.apache.org
> >>>
> >>>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >> For additional commands, e-mail: users-help@maven.apache.org
> >>
> >
> > _________________________________________________________________
> > Nyhet! MSN Messenger i Mobiltelefonen! http://mobile.msn.com/
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: Assembly one of the modules

Posted by Dario Luis Coneglian Oliveros <ol...@cpqd.com.br>.
Any idea when a new version of the maven-assembly-plugin will be released ?
Thanks,
Dário

fred flinta wrote:

>
> Thanks,
>
> yes, it works the way you said. It resulted in the following pom:
>
> ...
>   <plugin>
>    <artifactId>maven-assembly-plugin</artifactId>
>    <executions>
>     <execution>
>      <phase>package</phase>
>      <configuration>
>       <descriptors>
>        <descriptor>src/main/assembly/dep.xml</descriptor>
>       </descriptors>
>      </configuration>
>      <goals>
>       <goal>assembly</goal>
>      </goals>
>     </execution>
>    </executions>
>   </plugin>
> ...
>
> Br / Fred
>
>
>> From: "Tom Huybrechts" <to...@gmail.com>
>> Reply-To: "Maven Users List" <us...@maven.apache.org>
>> To: "Maven Users List" <us...@maven.apache.org>
>> Subject: Re: Assembly one of the modules
>> Date: Tue, 2 May 2006 16:35:44 +0200
>>
>> You could bind the assembly:assembly goal to a well known phase in the
>> client pom (e.g. package). If you then run 'mvn
>> package/install/deploy' on the parent, the assembly will generated in
>> the client, but not in any of the other modules.
>>
>> Tom
>>
>> On 5/2/06, fred flinta <qf...@hotmail.com> wrote:
>>
>>>
>>> Hi all!
>>>
>>> I'm trying to run the assembly for one of my modules, but it seems that
>>> Maven forces me to define an assembly descriptor for each module.
>>>
>>> My system looks like:
>>>
>>> /pom.xml
>>> /core/pom.xml
>>> /core/src/..
>>> /client/pom.xml
>>> /client/src/..
>>> /client/src/main/assembly
>>>
>>> Running "mvn assemly:assembly" in the "client" module works fine!
>>>
>>> When running the "mvn assemly:assembly" at the top level Maven states:
>>>
>>> [INFO] [assembly:assembly]
>>> [INFO]
>>> ------------------------------------------------------------------------ 
>>>
>>> [ERROR] BUILD FAILURE
>>> [INFO]
>>> ------------------------------------------------------------------------ 
>>>
>>> [INFO] No assembly descriptors found.
>>> [INFO]
>>> ------------------------------------------------------------------------ 
>>>
>>>
>>> What have I missed? .. How do I create create distribusitions for 
>>> some of
>>> may modules with many modules?
>>>
>>>
>>> / Fred
>>>
>>> _________________________________________________________________
>>> Chat: Ha en fest på Habbo Hotel
>>> http://habbohotel.msn.se/habbo/sv/channelizer Checka in här!
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>
> _________________________________________________________________
> Nyhet! MSN Messenger i Mobiltelefonen! http://mobile.msn.com/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>


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


Re: Assembly one of the modules

Posted by fred flinta <qf...@hotmail.com>.
Thanks,

yes, it works the way you said. It resulted in the following pom:

...
   <plugin>
    <artifactId>maven-assembly-plugin</artifactId>
    <executions>
     <execution>
      <phase>package</phase>
      <configuration>
       <descriptors>
        <descriptor>src/main/assembly/dep.xml</descriptor>
       </descriptors>
      </configuration>
      <goals>
       <goal>assembly</goal>
      </goals>
     </execution>
    </executions>
   </plugin>
...

Br / Fred


>From: "Tom Huybrechts" <to...@gmail.com>
>Reply-To: "Maven Users List" <us...@maven.apache.org>
>To: "Maven Users List" <us...@maven.apache.org>
>Subject: Re: Assembly one of the modules
>Date: Tue, 2 May 2006 16:35:44 +0200
>
>You could bind the assembly:assembly goal to a well known phase in the
>client pom (e.g. package). If you then run 'mvn
>package/install/deploy' on the parent, the assembly will generated in
>the client, but not in any of the other modules.
>
>Tom
>
>On 5/2/06, fred flinta <qf...@hotmail.com> wrote:
>>
>>Hi all!
>>
>>I'm trying to run the assembly for one of my modules, but it seems that
>>Maven forces me to define an assembly descriptor for each module.
>>
>>My system looks like:
>>
>>/pom.xml
>>/core/pom.xml
>>/core/src/..
>>/client/pom.xml
>>/client/src/..
>>/client/src/main/assembly
>>
>>Running "mvn assemly:assembly" in the "client" module works fine!
>>
>>When running the "mvn assemly:assembly" at the top level Maven states:
>>
>>[INFO] [assembly:assembly]
>>[INFO]
>>------------------------------------------------------------------------
>>[ERROR] BUILD FAILURE
>>[INFO]
>>------------------------------------------------------------------------
>>[INFO] No assembly descriptors found.
>>[INFO]
>>------------------------------------------------------------------------
>>
>>What have I missed? .. How do I create create distribusitions for some of
>>may modules with many modules?
>>
>>
>>/ Fred
>>
>>_________________________________________________________________
>>Chat: Ha en fest på Habbo Hotel
>>http://habbohotel.msn.se/habbo/sv/channelizer Checka in här!
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>For additional commands, e-mail: users-help@maven.apache.org
>

_________________________________________________________________
Nyhet! MSN Messenger i Mobiltelefonen! http://mobile.msn.com/


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


Re: Assembly one of the modules

Posted by Tom Huybrechts <to...@gmail.com>.
You could bind the assembly:assembly goal to a well known phase in the
client pom (e.g. package). If you then run 'mvn
package/install/deploy' on the parent, the assembly will generated in
the client, but not in any of the other modules.

Tom

On 5/2/06, fred flinta <qf...@hotmail.com> wrote:
>
> Hi all!
>
> I'm trying to run the assembly for one of my modules, but it seems that
> Maven forces me to define an assembly descriptor for each module.
>
> My system looks like:
>
> /pom.xml
> /core/pom.xml
> /core/src/..
> /client/pom.xml
> /client/src/..
> /client/src/main/assembly
>
> Running "mvn assemly:assembly" in the "client" module works fine!
>
> When running the "mvn assemly:assembly" at the top level Maven states:
>
> [INFO] [assembly:assembly]
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] No assembly descriptors found.
> [INFO]
> ------------------------------------------------------------------------
>
> What have I missed? .. How do I create create distribusitions for some of
> may modules with many modules?
>
>
> / Fred
>
> _________________________________________________________________
> Chat: Ha en fest på Habbo Hotel
> http://habbohotel.msn.se/habbo/sv/channelizer Checka in här!
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

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