Thank you John and Tim, now "mvn package" creates the assembly.
But there seems to be a problem with the dependencies, if I use
  -DdescriptorId=jar-with-dependencies
I get all the dependend jars but my own assembly descriptor simply ignores the 
entry

  <dependencySets>
    <dependencySet>
      <outputDirectory>/</outputDirectory>
      <unpack>true</unpack>
      <scope>runtime</scope>
    </dependencySet>
  </dependencySets>

regards carsten,

 On 22 May 2006 at 11:08, John Casey wrote:

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



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

Reply via email to