Stephane Nicoll wrote:

It seems I hit a regression in 2.0.9 or a weird behavior. I am unable to use
a snapshot plugin with 2.0.9, it constantly uses the release version even
when I use the -U flag or I set the snapshot update policy to "always".
Switching to 2.0.8 works just fine.

The POMs in src/test/resources/projects I looked at had no <version> element for the maven-ear-plugin and as such are subject to the versions given by the super POM introduced in Maven 2.0.9 (MNG-3395). Therefore Maven 2.0.9 uses version 2.3.1 during the tests while Maven 2.0.8 goes for LATEST.

Even if the POMs were fixed (e.g. via filtering) to specify the proper plugin version, it appears one has to first run "mvn install" to get the current code base into the local repo before "mvn test -P run-its" can pick the proper plugin artifact.


Benjamin

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to