Hi Tim, I misunderstood the instructions for deploy ... this works for me now :) Thanks a lot!
Matthias -------- Original-Nachricht -------- > Datum: Wed, 05 Sep 2007 12:05:26 +0200 > Von: Tim Kettler <[EMAIL PROTECTED]> > An: Maven Users List <users@maven.apache.org> > Betreff: Re: assembly - plugin > Hi, > > can you please give the complete picture of what your project structure > looks like and what exactly you are trying to do. In your original mail > you wrote something about creating an assembly and deploying and > referencing it, and now you give a snippet of a ejb-plugin > configuration? That seems to be totally unrelated to me. But that's > probably just because I can't really follow your description. > > Nick has alreeady pointed you to the solution how to build the assembly > as part of the build-lifecylce so it gets installed/deployed to your > local or internal repository when you do an 'mvn install/deploy'. > > On the point of referencing the deployed artifacts, the plugin > documentation [1] states: > > "When the assembly is created it will use the assemblyId as the > artifact's classifier ..." > > So when referencing the deployed assembly from another project, > something like this should work: > > <dependency> > <groupId>your.group.id</groupId> > <artifactId>your-artifact-id</artifactId> > <version>3.14.15.9</version> > <classifier>your-assembly-id</classifier> > </dependency> > > -Tim > > [1] http://maven.apache.org/plugins/maven-assembly-plugin/usage.html > > Matthias Marchart schrieb: > > I'm sorry, i subsribed to the list about 15 min. ago ;) > > The solution seems not to fulfill my needs: > > > > I've a commons-project and this is splitted up into subprojects by > packagenames. This commons-project is completly independend of the projects > which need to include it (into an ear-file). I'd like to include a subset of > packages into that ear as an ejb3Module. > > > > <ejb3Module> > > <artifactId>common-mysubset</artifactId> > > <groupId>org.domain.common</groupId> > > <bundleFileName>common.jar</bundleFileName> > > </ejb3Module> > > > > -------- Original-Nachricht -------- > >> Datum: Wed, 05 Sep 2007 10:53:50 +0200 > >> Von: Nick Stolwijk <[EMAIL PROTECTED]> > >> An: Maven Users List <users@maven.apache.org> > >> Betreff: Re: assembly - plugin > > > >> Yes, and the answer was given an hour ago to someone else's post. To > >> quote: > >> > >> Hi, > >> > >> Evan Toliopoulos schrieb: > >>> Hi, > >>> > >>> I am having trouble deploying a 'tar.gz' assembly of a parent project > >>> using the deploy goal. > >>> > >>> The parent project has a number of child module projects. > >>> > >>> Essentially I am running the following on the parent project: > >>> > >>> mvn package assembly:assembly deploy > >> What is happening here is this: First 'assembly:assembly' is executed > as > >> a standalone plugin goal on the command line, which builds the > assembly. > >> Then as the second step the 'deploy' phase is invoked on your project, > >> and since these two steps are two completely separate executions, the > >> second run (deploy) knows nothing about the previously build assembly. > >> > >> What you should do instead, is to attach the assembly-plugin execution > >> to the build lifecycle of your project, so it gets executed > >> automatically when you run 'mvn deploy' for example. To do this modify > >> your plugin configuration like this: > >> > >> [...] > >> <plugin> > >> <artifactId>maven-assembly-plugin</artifactId> > >> <inherited>false</inherited> > >> <configuration> > >> <descriptors> > >> > <descriptor>src/main/assembly/developer-assembly.xml</descriptor> > >> </descriptors> > >> </configuration> > >> <executions> > >> <execution> > >> <id>make-assembly</id> > >> <phase>package</phase> > >> <goals> > >> <goal>single</goal> > >> </goals> > >> </execution> > >> </executions> > >> </plugin> > >> [...] > >> > >> This executes the assembly-plugin as part of the 'package' phase of the > >> project and attaches the built assembly to your project, the deploy > >> plugin then will automatically pick up this additional artifact and > >> deploy it to the repository. > >> > >> -Tim > >> > >> Matthias Marchart wrote: > >>> Hello! > >>> > >>> My questions concerns the assembly-plugin (see > >> http://maven.apache.org/plugins/maven-assembly-plugin/) > >>> Is there a way to install the assembly's created during the package - > >> phase to the local repository? > >>> I like to refer the assembly in a other project ... > >>> > >>> Thanks for your help! > >>> Matthias > >>> > >> > >> --------------------------------------------------------------------- > >> 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] -- GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS. Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]