Using properties-maven-pluginin dependency management
I am unable to get properties-maven-plugin to work with dependencyManagement section of the pom. I was trying to replace my invoker plugin placeholders as traditional ones to be able to run the invoker project as standalone project but failed.
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>@JUNIT_VERSION@</version>
<scope>test</scope>
</dependency>
would have become
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
and version information would have come from replaceable pom.properties.
properties-maven-plugin injected properties work perfectly everywhere else but not within dependencies. I tried both validate and initialize phase and I can see with properties writer that in borh cases the injected properties are there but maven fails to acknowledge them in dependency management. Both 2.1 and maven embedder (m2eclipse) have this problem.
Any pointers where to fill in an issue or alternative approaches?
--
Tuomas