DefaultArtifact getBaseVersion is changed to "xxxx-SNAPSHOT" only if you first call isSnapshot() ------------------------------------------------------------------------------------------------
Key: MNG-2961 URL: http://jira.codehaus.org/browse/MNG-2961 Project: Maven 2 Issue Type: Bug Components: Artifacts and Repositories Affects Versions: 2.0.6, 2.0.5, 2.0.4, 2.0.3, 2.0.2, 2.0.1, 2.0 Reporter: Brian Fox Priority: Minor calling isSnapshot() actually modifies the baseVersion: public boolean isSnapshot() { if ( version != null || baseVersion != null ) { Matcher m = VERSION_FILE_PATTERN.matcher( getBaseVersion() ); if ( m.matches() ) { setBaseVersion( m.group( 1 ) + "-" + SNAPSHOT_VERSION ); return true; } else { return getBaseVersion().endsWith( SNAPSHOT_VERSION ) || getBaseVersion().equals( LATEST_VERSION ); } } else { return false; } } -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira