Using the newest release of the assembly plugin, you can bind the 'attached'
goal directly to the package phase of your lifecycle, and avoid building
twice...so:

[...]
<goals>
 <goal>attached</goal>
</goals>
[...]

HTH,

john

On 5/19/06, Tim Kettler <[EMAIL PROTECTED]> wrote:

Can't you just bind the plugin to a lifecycle phase in your pom?:

<plugin>
   <groupId>org.apache.maven.plugins</groupId>
   <artifactId>maven-assembly-plugin</artifactId>
   <executions>
     <execution>
       <phase>package</phase>
       <configuration>
         <descriptorId>jar-with-dependencies</descriptorId>
       </configuration>
       <goals>
         <goal>assembly</goal>
       </goals>
     </execution>
   </executions>
</plugin>

Hope this helps
-Tim

Carsten Karkola schrieb:
> Hello,
>
> the usage of the assembly plugin is only possible via
>   mvn assembly:assembly
>
> Is there a possibility to define something like
>  <packaging>assembly</packaging>
>
> So I could do a
>   mvn package
> in my multi-project directory and would get the needed assemblies
without
> special calls of some subprojects, where the assemblies are defined.
>
> regards, carsten
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to