[ 
http://jira.codehaus.org/browse/MBUILDHELPER-17?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dennis Lundberg closed MBUILDHELPER-17.
---------------------------------------

    Resolution: Won't Fix

A look at the sources for Maven Artifact, which handles the parsing, shows that 
it is illegal for an incremental number to start with '0' if it is longer than 
one character.

{code:java}
    private static Integer getNextIntegerToken( StringTokenizer tok )
    {
        String s = tok.nextToken();
        if ( s.length() > 1 && s.startsWith( "0" ) )
        {
            throw new NumberFormatException( "Number part has a leading 0: '" + 
s + "'" );
        }
        return Integer.valueOf( s );
    }
{code}

So having '017' as the incremental version is invalid.

> If the project version contains an incremental version, the parsedVersion 
> information is all zeroes.
> ----------------------------------------------------------------------------------------------------
>
>                 Key: MBUILDHELPER-17
>                 URL: http://jira.codehaus.org/browse/MBUILDHELPER-17
>             Project: Maven 2.x Build Helper Plugin
>          Issue Type: Bug
>    Affects Versions: 1.4
>            Reporter: Edward Campbell
>
> If you have an artifact version     <version>2.0.017-SNAPSHOT</version>
> the parsedVersion information will all be set to zero. i.e. 
> parsedVersion.majorVersion = 0 ...

-- 
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

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to