Details
-
Type:
Improvement
-
Status:
Reopened
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 2.0-beta-4
-
Fix Version/s: None
-
Component/s: prepare
-
Labels:None
-
Number of attachments :
Description
When I release a project with many modules with internal dependencies.
I would like those dependencies to keep the released version rather than the next development version.
ie: I only release some modules at a time (those that were changed only since last release).
So when my webapp is released, I want it to become SNAPSHOT again(as it is done already) but want the internal dependencies to keep the released version.
I want to update them manually whenever I change one.
Setting the updateDependencies flag to false doesn't change the dependencies at all:
I have a small project with modules:
[INFO] Reactor build order:
[INFO] Test parent POM
[INFO] Test Common lib
[INFO] Test Module 1 lib
[INFO] Test Module 2 lib
[INFO] Test Webapp
With all modules inheriting from the Parent POM (at the root)
Module 1 and Module 2 both has Common lib as a dependency
Webapp has Common, Module 1 and Module 2 has dependencies.
Everything is 1.0-SNAPSHOT
I start the release:prepare and enter the new versions.
the pom.xml.tag files are fine.
But I would expect the pom.xml.next files to:
-Have the version set to the next development version --> OK
-Have the parent version set to the parent next version --> OK
-Have the dependencies keep the tagged version --> KO, it keeps the SNAPSHOT version before the release
[DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-release-plugin:2.0-beta-6:prepare' -->
[DEBUG] (f) addSchema = true
[DEBUG] (f) autoVersionSubmodules = false
[DEBUG] (s) basedir = c:\eclipse\workspace\test-m2
[DEBUG] (f) commitByProject = false
[DEBUG] (f) dryRun = true
[DEBUG] (f) generateReleasePoms = false
[DEBUG] (f) preparationGoals = clean verify
[DEBUG] (f) project = org.apache.maven.project.MavenProject@e9eb54c7
[DEBUG] (f) reactorProjects = [org.apache.maven.project.MavenProject@e9eb54c7, org.apache.maven.project.MavenProject@e6f1aaf9, org.apache.maven.project.MavenProject@4f8f9b35, org.apache.maven.project.MavenProject@14217d54, org.apache.maven.project.MavenProject@fc355cf0]
[DEBUG] (f) resume = true
[DEBUG] (f) scmCommentPrefix = [maven-release-plugin]
[DEBUG] (f) settings = org.apache.maven.settings.Settings@12884e0
[DEBUG] (f) updateDependencies = false
[DEBUG] (f) useEditMode = false
[DEBUG] – end configuration –