Re: [m2.0.3] idea:idea = StringIndexOutOfBoundsException

2006-03-31 Thread Wesslan

Found it!

I had the following in my pom:
resources 
  resource 
directory${basedir}/directory 
excludes 
  exclude*.sql/exclude 
/excludes 
  /resource 
/resources 

and I had to add an / after  ${basedir}:
directory${basedir}//directory
--
View this message in context: 
http://www.nabble.com/-m2.0.3-idea%3Aidea-%3D%3E-StringIndexOutOfBoundsException-t1373009.html#a3689128
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [m2.0.3] idea:idea = StringIndexOutOfBoundsException

2006-03-31 Thread Johann Reyes
Hello Wesslan

One question, have you run mvn idea:idea previously with maven 2.0.2? 

Regards

Johann Reyes

-Original Message-
From: Wesslan [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 31, 2006 2:05 AM
To: users@maven.apache.org
Subject: [m2.0.3] idea:idea = StringIndexOutOfBoundsException


When I try run to mvn idea:idea for my project, I get the following
exception:

[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'idea'.
[INFO]

[INFO] Building secret app
[INFO]task-segment: [idea:idea]
[INFO]

[INFO] Preparing idea:idea
[INFO] No goals needed for project - skipping
[INFO] [idea:idea]
[INFO]

[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(DefaultPluginManage
r.java:412)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLife
cycleExecutor.java:534)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(De
faultLifecycleExecutor.java:488)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifec
ycleExecutor.java:458)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFail
ures(DefaultLifecycleExecutor.java:306)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(Defa
ultLifecycleExecutor.java:273)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycle
Executor.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: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)

Any ideas?

Regards Peter
--
View this message in context:
http://www.nabble.com/-m2.0.3-idea%3Aidea-%3D%3E-StringIndexOutOfBoundsExcep
tion-t1373009.html#a3684560
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]