[ 
https://jira.codehaus.org/browse/MBUILDNUM-34?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=274105#comment-274105
 ] 

Stevo Slavic commented on MBUILDNUM-34:
---------------------------------------

Just tried buildnumber-maven-plugin 1.0, maven-scm-provider-svnjava 1.13, 
maven-release-plugin 2.2 - works well. Thanks for fixing!

> IndexOutOfBoundsException thrown on create goal execution
> ---------------------------------------------------------
>
>                 Key: MBUILDNUM-34
>                 URL: https://jira.codehaus.org/browse/MBUILDNUM-34
>             Project: Mojo Build Number Maven Plugin
>          Issue Type: Bug
>    Affects Versions: buildnumber-maven-plugin-1.0
>         Environment: maven 3.0.3
> svn 1.6
> com.google.code.maven-scm-provider-svnjava.version: 1.11
>            Reporter: Stevo Slavic
>            Assignee: Olivier Lamy
>            Priority: Minor
>
> I upgraded from 1.0-beta-4 to just released 1.0 version of buildnumber 
> plugin, and build with plugin configuration [1] which was successful with 
> 1.0-beta-4 now throws [2].
> [1] plugin configuration
> {code}
>     <pluginManagement>
>       <plugins>
>         <plugin>
>           <groupId>org.codehaus.mojo</groupId>
>           <artifactId>buildnumber-maven-plugin</artifactId>
>           <version>1.0</version>
>           <dependencies>
>             <dependency>
>               <groupId>com.google.code.maven-scm-provider-svnjava</groupId>
>               <artifactId>maven-scm-provider-svnjava</artifactId>
>               
> <version>${com.google.code.maven-scm-provider-svnjava.version}</version>
>             </dependency>
>           </dependencies>
>         </plugin>
>         <plugin>
>           <groupId>org.apache.maven.plugins</groupId>
>           <artifactId>maven-scm-plugin</artifactId>
>           <version>1.5</version>
>           <dependencies>
>             <dependency>
>               <groupId>com.google.code.maven-scm-provider-svnjava</groupId>
>               <artifactId>maven-scm-provider-svnjava</artifactId>
>               
> <version>${com.google.code.maven-scm-provider-svnjava.version}</version>
>             </dependency>
>           </dependencies>
>         </plugin>
>       </plugins>
>     </pluginManagement>
>     <plugins>
>       <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-scm-plugin</artifactId>
>         <configuration>
>           <providerImplementations>
>             <svn>javasvn</svn>
>           </providerImplementations>
>           <username>foo</username>
>           <password>bar</password>
>         </configuration>
>       </plugin>
>      <plugin>
>        <groupId>org.codehaus.mojo</groupId>
>        <artifactId>buildnumber-maven-plugin</artifactId>
>        <executions>
>          <execution>
>            <phase>validate</phase>
>            <goals>
>              <goal>create</goal>
>            </goals>
>          </execution>
>        </executions>
>        <configuration>
>          <doCheck>false</doCheck>
>          <doUpdate>false</doUpdate>
>          <getRevisionOnlyOnce>true</getRevisionOnlyOnce>
>          <providerImplementations>
>            <svn>javasvn</svn>
>          </providerImplementations>
>          <username>foo</username>
>          <password>bar</password>
>          <timestampFormat>{0,date,yyyyMMdd_HHmmss}</timestampFormat>
>        </configuration>
>      </plugin>
>     <plugins>
> {code}
> [2] exception stacktrace
> {code}
> Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
>        at java.util.ArrayList.RangeCheck(ArrayList.java:547)
>        at java.util.ArrayList.get(ArrayList.java:322)
>        at org.codehaus.mojo.build.CreateMojo.getScmBranch(CreateMojo.java:637)
>        at org.codehaus.mojo.build.CreateMojo.execute(CreateMojo.java:464)
>        at 
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
> {code}

--
This message is automatically generated by JIRA.
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