maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jens Mühlenhoff (JIRA) <>
Subject [jira] Created: (MRELEASE-416) given dependencies from a file not used during release:prepare
Date Thu, 26 Feb 2009 15:26:19 GMT
given dependencies from a file not used during release:prepare

                 Key: MRELEASE-416
             Project: Maven 2.x Release Plugin
          Issue Type: Bug
          Components: prepare
         Environment: Windows, maven 2.0.10
            Reporter: Jens Mühlenhoff

Create a file which holds all dependency you want to be resolved.

Drung the release:prepare this properties are currently not used to resolve snapshot dependencies:

#release configuration

The problem seams to be in the method: 
ReleaseUtils.loadResolvedDependencies( ... )
                startIndex = propertyName.lastIndexOf( "dependency." );

The methode lastIndexOf returns in this case always 0 because the last time the string "dependency."
was found at the starting position 0.

Until this isn't fixed it is hard to release several projects with one script.

Furthermore it would be good to niticed, that using the will only work
if the resume=flas is toggeled to true.

                 endIndex = propertyName.indexOf( ".development" );
                artifactVersionlessKey = propertyName.substring( startIndex, endIndex );

Currently artifactVersionlessKey will contain "dependency.test.parent:root" which seams to
be wrong.

This line must be changed to
                artifactVersionlessKey = propertyName.substring( startIndex+11, endIndex );

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message