You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Trevor Paterson <tr...@roslin.ed.ac.uk> on 2008/12/16 11:52:39 UTC

Deploy a POM with Properties Filterred/interpolated

I can't find any response on the list to the problem of how to
prefilter/interpolate properties ( such as version numbers ) in an
artifact's POM upon Deploying to a repository. The default is for the
unfilterred project POM to be uploaded.

we have many variable properties in our POMs to control artifact and
depedency artifact versions and need these interpolated before deployment.

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!

Thanks for any help

Trevor Paterson
-- 
View this message in context: http://www.nabble.com/Deploy-a-POM-with-Properties-Filterred-interpolated-tp21030932p21030932.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: Deploy a POM with Properties Filterred/interpolated

Posted by Trevor Paterson <tr...@roslin.ed.ac.uk>.
>> 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-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org