Re: Reusing assembly descriptors aka. sharing them between projects
Great, thanks. Dennis Lundberg wrote: Rusty Wright wrote: Where is this documented on the maven site? It's not yet live, but is included in the next version of the Assembly Plugin. Until that is released you can view the apt source file for the document here: http://svn.eu.apache.org/repos/asf/maven/plugins/trunk/maven-assembly-plugin/src/site/apt/examples/sharing-descriptors.apt De Smet Ringo wrote: -Original Message- From: sirly...@gmail.com [mailto:sirly...@gmail.com] On Behalf Of John Stoneham Sent: dinsdag 9 december 2008 6:27 To: Maven Users List Subject: Re: Reusing assembly descriptors aka. sharing them between projects Now, you can use it as a descriptorRef, just like jar-with-dependencies. http://books.sonatype.com/maven-book/reference/assemblies.html #d0e16265 has step-by-step instructions. Weird that the Maven book has such a complicated setup. Here is an alternative 1) The assembly descriptor Maven module: Create a POM with packaging type 'assembly-descriptor'. Put the following in the 'build' section of the POM: org.apache.maven.plugins maven-assembly-plugin 2.2-beta-2 And complete the rest of the POM as you like. Release the project and deploy it to your repository. Put the file assembly-descriptor.xml under src/main/resources (note: *no* assemblies subfolder!) 2) Projects using the assembly descriptor Configure the maven-assembly-plugin as follows: org.apache.maven.plugins maven-assembly-plugin 2.2-beta-2 some-group-id:assembly-descriptor-artifactId:1.0 attached package I think this is much for the users of the assembly descriptor. Ringo * Dit e-mail bericht inclusief eventuele ingesloten bestanden kan informatie bevatten die vertrouwelijk is en/of beschermd door intellectuele eigendomsrechten. Dit bericht is uitsluitend bestemd voor de geadresseerde(n). Elk gebruik van de informatie vervat in dit bericht (waaronder de volledige of gedeeltelijke reproductie of verspreiding onder elke vorm) door andere personen dan de geadresseerde(n) is verboden. Indien u dit bericht per vergissing heeft ontvangen, gelieve de afzender hiervan te verwittigen en dit bericht te verwijderen. This e-mail and any attachment thereto may contain information which is confidential and/or protected by intellectual property rights and are intended for the sole use of the addressees. Any use of the information contained herein (including but not limited to total or partial reproduction or distribution in any form) by other persons than the addressees is prohibited. If you have received this e-mail in error, please notify the sender and delete its contents. Ce courriel et les annexes éventuelles peuvent contenir des informations confidentielles et/ou protégées par des droits de propriété intellectuelle. Ce message est adressé exclusivement à son (ses) destinataire(s). Toute utilisation du contenu de ce message (y compris la reproduction ou diffusion partielle ou complète sous toute forme) par une autre personne que le(s) destinataire(s) est formellement interdite. Si vous avez reçu ce message par erreur, veuillez prévenir l'expéditeur du message et en détruire le contenu. * - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Reusing assembly descriptors aka. sharing them between projects
Rusty Wright wrote: > Where is this documented on the maven site? It's not yet live, but is included in the next version of the Assembly Plugin. Until that is released you can view the apt source file for the document here: http://svn.eu.apache.org/repos/asf/maven/plugins/trunk/maven-assembly-plugin/src/site/apt/examples/sharing-descriptors.apt > > > De Smet Ringo wrote: >> >> >>> -Original Message- >>> From: sirly...@gmail.com [mailto:sirly...@gmail.com] On Behalf Of >>> John Stoneham >>> Sent: dinsdag 9 december 2008 6:27 >>> To: Maven Users List >>> Subject: Re: Reusing assembly descriptors aka. sharing them between >>> projects >>> >>> Now, you can use it as a descriptorRef, just like jar-with-dependencies. >>> >>> http://books.sonatype.com/maven-book/reference/assemblies.html >>> #d0e16265 >>> has step-by-step instructions. >> >> Weird that the Maven book has such a complicated setup. Here is an >> alternative >> >> 1) The assembly descriptor Maven module: >> >> Create a POM with packaging type 'assembly-descriptor'. Put the >> following in the 'build' section of the POM: >> >> >> >> org.apache.maven.plugins >> maven-assembly-plugin >> 2.2-beta-2 >> >> >> >> And complete the rest of the POM as you like. Release the project and >> deploy it to your repository. >> Put the file assembly-descriptor.xml under src/main/resources (note: >> *no* assemblies subfolder!) >> >> 2) Projects using the assembly descriptor >> >> Configure the maven-assembly-plugin as follows: >> >> >> org.apache.maven.plugins >> maven-assembly-plugin >> 2.2-beta-2 >> >> >> >> some-group-id:assembly-descriptor-artifactId:1.0 >> >> >> >> >> >> attached >> >> package >> >> >> >> >> I think this is much for the users of the assembly descriptor. >> >> Ringo >> * >> >> Dit e-mail bericht inclusief eventuele ingesloten bestanden kan >> informatie bevatten die vertrouwelijk is en/of beschermd door >> intellectuele eigendomsrechten. Dit bericht is uitsluitend bestemd >> voor de geadresseerde(n). Elk gebruik van de informatie vervat in dit >> bericht (waaronder de volledige of gedeeltelijke reproductie of >> verspreiding onder elke vorm) door andere personen dan de >> geadresseerde(n) is verboden. Indien u dit bericht per vergissing >> heeft ontvangen, gelieve de afzender hiervan te verwittigen en dit >> bericht te verwijderen. >> This e-mail and any attachment thereto may contain information which >> is confidential and/or protected by intellectual property rights and >> are intended for the sole use of the addressees. Any use of the >> information contained herein (including but not limited to total or >> partial reproduction or distribution in any form) by other persons >> than the addressees is prohibited. If you have received this e-mail in >> error, please notify the sender and delete its contents. >> >> Ce courriel et les annexes éventuelles peuvent contenir des >> informations confidentielles et/ou protégées par des droits de >> propriété intellectuelle. Ce message est adressé exclusivement à son >> (ses) destinataire(s). Toute utilisation du contenu de ce message (y >> compris la reproduction ou diffusion partielle ou complète sous toute >> forme) par une autre personne que le(s) destinataire(s) est >> formellement interdite. Si vous avez reçu ce message par erreur, >> veuillez prévenir l'expéditeur du message et en détruire le contenu. >> >> * >> >> - >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org >> For additional commands, e-mail: users-h...@maven.apache.org >> > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > -- Dennis Lundberg - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Reusing assembly descriptors aka. sharing them between projects
On Fri, Dec 12, 2008 at 5:28 PM, Rusty Wright wrote: > Where is this documented on the maven site? If you don't find it in the Assembly plugin docs [1], please consider summarizing the info in this thread and submitting a patch to improve them, or at least opening an issue pointing out the omission and linking to this thread so someone else can pick it up. Another option is to add to the plugin's wiki page [2]. [1] http://maven.apache.org/plugins/maven-assembly-plugin/ [2] http://docs.codehaus.org/display/MAVENUSER/Assembly+Plugin -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Reusing assembly descriptors aka. sharing them between projects
Where is this documented on the maven site? De Smet Ringo wrote: -Original Message- From: sirly...@gmail.com [mailto:sirly...@gmail.com] On Behalf Of John Stoneham Sent: dinsdag 9 december 2008 6:27 To: Maven Users List Subject: Re: Reusing assembly descriptors aka. sharing them between projects Now, you can use it as a descriptorRef, just like jar-with-dependencies. http://books.sonatype.com/maven-book/reference/assemblies.html #d0e16265 has step-by-step instructions. Weird that the Maven book has such a complicated setup. Here is an alternative 1) The assembly descriptor Maven module: Create a POM with packaging type 'assembly-descriptor'. Put the following in the 'build' section of the POM: org.apache.maven.plugins maven-assembly-plugin 2.2-beta-2 And complete the rest of the POM as you like. Release the project and deploy it to your repository. Put the file assembly-descriptor.xml under src/main/resources (note: *no* assemblies subfolder!) 2) Projects using the assembly descriptor Configure the maven-assembly-plugin as follows: org.apache.maven.plugins maven-assembly-plugin 2.2-beta-2 some-group-id:assembly-descriptor-artifactId:1.0 attached package I think this is much for the users of the assembly descriptor. Ringo * Dit e-mail bericht inclusief eventuele ingesloten bestanden kan informatie bevatten die vertrouwelijk is en/of beschermd door intellectuele eigendomsrechten. Dit bericht is uitsluitend bestemd voor de geadresseerde(n). Elk gebruik van de informatie vervat in dit bericht (waaronder de volledige of gedeeltelijke reproductie of verspreiding onder elke vorm) door andere personen dan de geadresseerde(n) is verboden. Indien u dit bericht per vergissing heeft ontvangen, gelieve de afzender hiervan te verwittigen en dit bericht te verwijderen. This e-mail and any attachment thereto may contain information which is confidential and/or protected by intellectual property rights and are intended for the sole use of the addressees. Any use of the information contained herein (including but not limited to total or partial reproduction or distribution in any form) by other persons than the addressees is prohibited. If you have received this e-mail in error, please notify the sender and delete its contents. Ce courriel et les annexes éventuelles peuvent contenir des informations confidentielles et/ou protégées par des droits de propriété intellectuelle. Ce message est adressé exclusivement à son (ses) destinataire(s). Toute utilisation du contenu de ce message (y compris la reproduction ou diffusion partielle ou complète sous toute forme) par une autre personne que le(s) destinataire(s) est formellement interdite. Si vous avez reçu ce message par erreur, veuillez prévenir l'expéditeur du message et en détruire le contenu. * - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: Reusing assembly descriptors aka. sharing them between projects
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > Behalf Of John Stoneham > Sent: dinsdag 9 december 2008 6:27 > To: Maven Users List > Subject: Re: Reusing assembly descriptors aka. sharing them > between projects > > Now, you can use it as a descriptorRef, just like > jar-with-dependencies. > > http://books.sonatype.com/maven-book/reference/assemblies.html > #d0e16265 > has step-by-step instructions. Weird that the Maven book has such a complicated setup. Here is an alternative 1) The assembly descriptor Maven module: Create a POM with packaging type 'assembly-descriptor'. Put the following in the 'build' section of the POM: org.apache.maven.plugins maven-assembly-plugin 2.2-beta-2 And complete the rest of the POM as you like. Release the project and deploy it to your repository. Put the file assembly-descriptor.xml under src/main/resources (note: *no* assemblies subfolder!) 2) Projects using the assembly descriptor Configure the maven-assembly-plugin as follows: org.apache.maven.plugins maven-assembly-plugin 2.2-beta-2 some-group-id:assembly-descriptor-artifactId:1.0 attached package I think this is much for the users of the assembly descriptor. Ringo * Dit e-mail bericht inclusief eventuele ingesloten bestanden kan informatie bevatten die vertrouwelijk is en/of beschermd door intellectuele eigendomsrechten. Dit bericht is uitsluitend bestemd voor de geadresseerde(n). Elk gebruik van de informatie vervat in dit bericht (waaronder de volledige of gedeeltelijke reproductie of verspreiding onder elke vorm) door andere personen dan de geadresseerde(n) is verboden. Indien u dit bericht per vergissing heeft ontvangen, gelieve de afzender hiervan te verwittigen en dit bericht te verwijderen. This e-mail and any attachment thereto may contain information which is confidential and/or protected by intellectual property rights and are intended for the sole use of the addressees. Any use of the information contained herein (including but not limited to total or partial reproduction or distribution in any form) by other persons than the addressees is prohibited. If you have received this e-mail in error, please notify the sender and delete its contents. Ce courriel et les annexes éventuelles peuvent contenir des informations confidentielles et/ou protégées par des droits de propriété intellectuelle. Ce message est adressé exclusivement à son (ses) destinataire(s). Toute utilisation du contenu de ce message (y compris la reproduction ou diffusion partielle ou complète sous toute forme) par une autre personne que le(s) destinataire(s) est formellement interdite. Si vous avez reçu ce message par erreur, veuillez prévenir l'expéditeur du message et en détruire le contenu. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Reusing assembly descriptors aka. sharing them between projects
Excellent John!! That's exactly what I was looking for. I definitely need to read through the Sonatype book completely. John Stoneham wrote: > >>> Off the top of my head the only viable idea I have is to deploy it in a >>> zip >>> to the Maven repo and use dependency plugin to resolve and unpack before >>> assembly step. Any caveats to that idea? >> >> None that I am aware of. This is the approach generally used for >> sharing configurations for Checkstyle etc across projects, so I think >> it makes sense to use in this case as well. > > Make a standard JAR project, and put the descriptor in > src/main/resources/assemblies. (The 'assemblies' bit is important.) > Build. > > Add that artifact as a plugin-level dependency of the assembly plugin > for your project. > > Now, you can use it as a descriptorRef, just like jar-with-dependencies. > > http://books.sonatype.com/maven-book/reference/assemblies.html#d0e16265 > has step-by-step instructions. > > - John > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Reusing-assembly-descriptors-aka.-sharing-them-between-projects-tp20905611p20918021.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Reusing assembly descriptors aka. sharing them between projects
>> Off the top of my head the only viable idea I have is to deploy it in a zip >> to the Maven repo and use dependency plugin to resolve and unpack before >> assembly step. Any caveats to that idea? > > None that I am aware of. This is the approach generally used for > sharing configurations for Checkstyle etc across projects, so I think > it makes sense to use in this case as well. Make a standard JAR project, and put the descriptor in src/main/resources/assemblies. (The 'assemblies' bit is important.) Build. Add that artifact as a plugin-level dependency of the assembly plugin for your project. Now, you can use it as a descriptorRef, just like jar-with-dependencies. http://books.sonatype.com/maven-book/reference/assemblies.html#d0e16265 has step-by-step instructions. - John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Reusing assembly descriptors aka. sharing them between projects
> Off the top of my head the only viable idea I have is to deploy it in a zip > to the Maven repo and use dependency plugin to resolve and unpack before > assembly step. Any caveats to that idea? None that I am aware of. This is the approach generally used for sharing configurations for Checkstyle etc across projects, so I think it makes sense to use in this case as well. Wayne - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]