LAST version of parent project in Maven

I am using Maven2. I created a parent POM for my organization. I want different groups to use it as a parent for their project, but I want them to use the latest version. for some reason, using it as a parent with the LATEST version does not work,

any idea?

Thanks, Ronen.

+3
source share
4 answers

You do not need to define a new version for every small change you make in POM.

( POM - ), , , ( SNAPSHOT - ). , . , POM , , POM.

+7

Maven version:update-parent, .

mvn versions:update-parent

, , POM .

+2

, SNAPSHOT, .

<version>1.2-SNAPSHOT</version>
+1

You need to run mvn with the -U option to force update local metadata files that contain mappings for the LATEST and RELEASE versions.

0
source

Source: https://habr.com/ru/post/1710652/


All Articles