[ http://jira.codehaus.org/browse/MIDEA-50?page=all ]
     
Brett Porter closed MIDEA-50:
-----------------------------

     Assign To: Brett Porter
    Resolution: Fixed

already fixed

> StringIndexOutOfBoundsException when adding a resource to the pom
> -----------------------------------------------------------------
>
>          Key: MIDEA-50
>          URL: http://jira.codehaus.org/browse/MIDEA-50
>      Project: Maven 2.x Idea Plugin
>         Type: Bug

>     Reporter: Tim Kettler
>     Assignee: Brett Porter
>      Fix For: 2.0
>  Attachments: testprj.zip
>
>
> When running 'mvn idea:idea' on the attached test project the plugin fails 
> with the following exception:
> [ERROR] FATAL ERROR
> [INFO] 
> ----------------------------------------------------------------------------
> [INFO] String index out of range: -1
> [INFO] 
> ----------------------------------------------------------------------------
> [INFO] Trace
> java.lang.StringIndexOutOfBoundsException: String index out of range: -1
>         at java.lang.String.substring(String.java:1768)
>         at java.lang.String.substring(String.java:1735)
>         at org.apache.maven.plugin.idea.IdeaMojo.toRelative(IdeaMojo.java:395)
>         at 
> org.apache.maven.plugin.idea.IdeaMojo.getModuleFileUrl(IdeaMojo.java:409)
>         at 
> org.apache.maven.plugin.idea.IdeaMojo.addSourceFolder(IdeaMojo.java:382)
>         at 
> org.apache.maven.plugin.idea.IdeaMojo.rewriteModule(IdeaMojo.java:255)
>         at org.apache.maven.plugin.idea.IdeaMojo.execute(IdeaMojo.java:79)
>         at 
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:415)
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:531)
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:485)
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:455)
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303)
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270)
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139)
>         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:249)
>         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:585)
>         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: 1 second
> [INFO] Finished at: Fri Apr 14 10:46:22 CEST 2006
> [INFO] Final Memory: 1M/4M
> [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

Reply via email to