Take the 2-minute tour ×

I want to use properties that are defined in a property file in a Maven script, in a plugin configuration section. How can I do that?

Extract from my Maven script:


And my property file (jdbc.properties) is somewhere in my classpath



share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

Use the properties plugin. And it's called a POM, not a script. It may seem like a trivial difference, but a POM describes a project and how it should be built, where a script is a sequence of commands saying what needs to be done.

share|improve this answer
Thanks, and point taken for the POM. I'm mostly used to Ant scripts, but I can see the difference in concept. –  Guillaume Sep 29 '11 at 6:47
add comment

Your Answer


