RE: Deploy a POM with Properties Filterred/interpolated
we have many variable properties in our POMs to control artifact and depedency artifact versions and need these interpolated before deployment. If you use the maven-release-plugin, you can use -DgenerateReleasePoms=true as a command line option to generate a release-pom.xml. Everything in that file is resolved, so no properties remain in there. thanks, but... using the maven-release-plugin would push us down the route of using maven to integrate builds with SCM (subversion)... this is not a route we want to go down at the moment, we handle SVN integration manually. What we want is to have a generateReleasePoms type funcionality in the deploy plugin so we can deploy release artifacts to our local Archiva repository with meaningful Poms. At the moment we can hack this by making a filterred/interpolated copy of the POM and then cleaning this to remove unwanted directives using a script: then deploy the artifact with this hacked POM. Trevor -- View this message in context: http://www.nabble.com/Deploy-a-POM-with-Properties-Filterred-interpolated-tp21030932p21070462.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: Deploy a POM with Properties Filterred/interpolated
Trevor, -Original Message- From: Trevor Paterson [mailto:trevor.pater...@roslin.ed.ac.uk] Sent: donderdag 18 december 2008 11:50 To: users@maven.apache.org Subject: RE: Deploy a POM with Properties Filterred/interpolated thanks, but... using the maven-release-plugin would push us down the route of using maven to integrate builds with SCM (subversion)... this is not a route we want to go down at the moment, we handle SVN integration manually. What we want is to have a generateReleasePoms type funcionality in the deploy plugin so we can deploy release artifacts to our local Archiva repository with meaningful Poms. At the moment we can hack this by making a filterred/interpolated copy of the POM and then cleaning this to remove unwanted directives using a script: then deploy the artifact with this hacked POM. The first solution that comes to mind is running the maven-release-plugin in dryRun mode (see the docs). This generates the proposed release-pom.xml. The build-helper-maven-plugin (1) can help you to deploy this file to the repository. After deployment, you trigger an mvn release:clean to get rid of these intermediate files. (1) http://mojo.codehaus.org/build-helper-maven-plugin/attach-artifact-mojo. html FYI, this is just out of the top of my head. I never tried it myself, but I hope it can put you on the right track. 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
RE: Deploy a POM with Properties Filterred/interpolated
Trevor, we have many variable properties in our POMs to control artifact and depedency artifact versions and need these interpolated before deployment. If you use the maven-release-plugin, you can use -DgenerateReleasePoms=true as a command line option to generate a release-pom.xml. Everything in that file is resolved, so no properties remain in there. On a related issue we would also like to exclude any build directives from the uploaded POM, but to edit a POM manually to achieve all this seems unecessarily laborious! You should lookup if you can put build directives in a profile section? 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