Reputation: 191
I want to use profiles which resolves the latest versions of my project. The current project with the profiles does not change... only the version needs to be updated and I dont want to touch every few weeks the project to adjust the version of my Plugins.
<profile>
<id>productive</id>
<properties>
<myPluginsVersion>RELEASE</myPluginsVersion>
</properties>
</profile>
<profile>
<id>development</id>
<properties>
<myPluginsVersion>LATEST</myPluginsVersion>
</properties>
</profile>
The use of LATEST or RELEASE are depreacted with maven 3.x. Is there another way? I used already the versions-plugin with update properties. But this plugin updated all my properties an the project was noct working any more. I only want to update myPluginsVersion automatically without touching the project with the profiles.
Upvotes: 1
Views: 1457
Reputation: 125
The RELEASE
and LATEST
features were removed with good reason: Maven aims for reproducible builds, whose purpose is defeated if the version that comes with each execution is not the same. In order to keep your project up-to-date, you could run mvn versions:use-latest-releases
, check that everything works, and commit the updated POM.
Upvotes: 1