maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joerg Schaible (JIRA)" <j...@codehaus.org>
Subject [jira] Closed: (MRELEASE-95) Exception if version has no minor number
Date Wed, 14 Jun 2006 10:09:41 GMT
     [ http://jira.codehaus.org/browse/MRELEASE-95?page=all ]
     
Joerg Schaible closed MRELEASE-95:
----------------------------------

    Resolution: Fixed

Sorry reopened by mistake, reopen was meant for MRELEASE-90.

> Exception if version has no minor number
> ----------------------------------------
>
>          Key: MRELEASE-95
>          URL: http://jira.codehaus.org/browse/MRELEASE-95
>      Project: Maven 2.x Release Plugin
>         Type: Bug

>     Versions: 2.0-beta-3
>     Reporter: Joerg Schaible
>     Assignee: Brett Porter
>      Fix For: 2.0-beta-4

>
>
> The plugin fails if the snapshot version doe not contain a minor number, e.g. 1-SNAPSHOT.
It should simply increase the major number, but fails with StringIndexOutOfBoundsException:
>  ======== %< ============
> $ LANG=C mvn release:prepare
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'release'.
> [INFO] ----------------------------------------------------------------------------
> [INFO] Building Elsag Master Project
> [INFO]    task-segment: [release:prepare] (aggregator-style)
> [INFO] ----------------------------------------------------------------------------
> [INFO] [release:prepare]
> [INFO] What tag name should be used? 
> v_1
> [INFO] Verifying there are no local modifications ...
> [INFO] Checking lineage for snapshots ...
> [INFO] Checking dependencies for snapshots ...
> [INFO] Checking plugins for snapshots ...
> [INFO] What is the release version for 'foo:master'? [1]
> [INFO] Checking in modified POMs
> [INFO] Tagging release with the label v_1.
> [INFO] ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] String index out of range: 2
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> java.lang.StringIndexOutOfBoundsException: String index out of range: 2
>         at java.lang.String.substring(String.java:1441)
>         at org.apache.maven.plugins.release.helpers.ProjectVersionResolver.incrementVersion(ProjectVersionResolver.java:124)
>         at org.apache.maven.plugins.release.PrepareReleaseMojo.execute(PrepareReleaseMojo.java:257)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:488)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:458)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:219)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>         at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 8 seconds
> [INFO] Finished at: Tue Apr 18 13:19:22 CEST 2006
> [INFO] Final Memory: 3M/6M
> [INFO] ------------------------------------------------------------------------
>  ======== %< ============

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


Mime
View raw message