Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Cannot Reproduce
-
2.0-beta-4
-
None
-
Maven 2.0.4 under windows
-
Patch
Description
I have a multi module project. When I do release:prepare, the release plugin update the version tag of all my submodules in the dependencyManagement section.
For the same module I have declared two artifacts like this :
<dependency> <groupId>com.bla</groupId> <artifactId>blabla</artifactId> <version>1.0-SNAPSHOT</version> <type>test-jar</type> <scope>test</scope> </dependency> <dependency> <groupId>com.bla</groupId> <artifactId>blabla</artifactId> <version>1.0-SNAPSHOT</version> </dependency>
In this case, the release plugin only update the first dependency.
This is due to element search in the "updateDomVersion" method of the AbstractRewritePomsPhase class. I've attached a patch to solve the problem. I don't know if this is the right way to do. I change all the artifacts in the same pass. I don't take car of different type/classifier
Attachments
Attachments
Issue Links
- is duplicated by
-
MRELEASE-634 Versions of snapshot dependencies to the same artifact with different classifiers are not updated correctly during release:prepare
- Closed
-
MRELEASE-659 snapshot dependency check on preparation of release: check artifacts WITH versions
- Closed
- relates to
-
MNG-2871 Subartifact (ejb-client, test-jar etc.) are not reselved as active project artifacts in build phases prior to package
- Closed
- links to