Frederic Camblor wrote:
> 
> Looks like this maven plugin could feet your needs :
> http://haroon.sis.utoronto.ca/zarar/properties-maven-plugin/index.html
> 

you can probably get what you're looking for by using that properties plugin
(making sure it runs before cargo), and then rather than adding the property
directly in the <configuration> section, use properties plugin to set the
_expression_ the parameter is mapped to

that is, assuming that the parameter is mapped to an expression

e.g. enforcer has a "skip" parameter [1], which is mapped to the expression
${enforcer.skip}, so if you don't directly configure skip in enforcer's
configuration section, but instead have the properties set the
"enforcer.skip" expression before enforcer runs, when enforcer loads you'll
see the value from the file

properties listed directly in the POM get resolved before the plugin runs,
and the plugin will get the same as seen when running help:effective-pom

i think that's how it will work, anyways

how advisable this route is?  i don't know.  will it "work"?  maybe, i think
so


[1]
http://maven.apache.org/plugins/maven-enforcer-plugin/enforce-mojo.html#skip
-- 
View this message in context: 
http://maven.40175.n5.nabble.com/using-properties-from-external-files-in-pom-xml-tp2739646p2740121.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

Reply via email to