You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Christian Grobmeier <gr...@gmail.com> on 2011/07/24 11:32:51 UTC

[vfs] mvn3 eclipse fails

Just tried to build a eclipse project of vfs with mvn eclipse:eclipse

My mvn version is 3.0.3. I get a weird error, so I am wondering if
somebody has experienced it before (or something similar). I tried it
from toplevel vfs and from core subfolder:

$ mvn eclipse:eclipse

...

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.151s
[INFO] Finished at: Sun Jul 24 11:28:23 CEST 2011
[INFO] Final Memory: 13M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-eclipse-plugin:2.8:eclipse
(default-cli) on project commons-vfs2: Execution default-cli of goal
org.apache.maven.plugins:maven-eclipse-plugin:2.8:eclipse failed:
String index out of range: -5 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
execute goal org.apache.maven.plugins:maven-eclipse-plugin:2.8:eclipse
(default-cli) on project commons-vfs2: Execution default-cli of goal
org.apache.maven.plugins:maven-eclipse-plugin:2.8:eclipse failed:
String index out of range: -5
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
	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:597)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution
default-cli of goal
org.apache.maven.plugins:maven-eclipse-plugin:2.8:eclipse failed:
String index out of range: -5
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
	... 19 more
Caused by: java.lang.StringIndexOutOfBoundsException: String index out
of range: -5
	at java.lang.String.substring(String.java:1937)
	at java.lang.String.substring(String.java:1904)
	at org.apache.maven.plugin.eclipse.writers.EclipseSettingsWriter.write(EclipseSettingsWriter.java:111)
	at org.apache.maven.plugin.eclipse.EclipsePlugin.writeConfiguration(EclipsePlugin.java:1113)
	at org.apache.maven.plugin.ide.AbstractIdeSupportMojo.execute(AbstractIdeSupportMojo.java:511)
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
	... 20 more

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Re: [vfs] mvn3 eclipse fails

Posted by Ralph Goers <ra...@dslextreme.com>.
I'm afraid I don't understand what you are proposing.

Ralph

On Jul 26, 2011, at 4:43 PM, Jörg Schaible wrote:

> Hi Ralph,
> 
> Ralph Goers wrote:
> 
>> For some reason Christian's message didn't arrive in the proper email
>> folder so I never saw it.
>> 
>> Actually, the real problem here isn't as much the LICENSE and NOTICE files
>> as it is checkstyle.xml.  It would be bad to have copy of that file in
>> each sub-folder as the checkstyle rules would be likely to get out of
>> synch.  However, it is probably good to have a single copy of the other
>> files as well.
> 
> For the generated Eclipse project it is the additional resource (and 
> testResource) definition of those two files in the commons-parent. It will 
> *always* create a non-usable Eclipse project. Therefore I wonder if we can 
> take the same approach for the main and test artifact as we do for the 
> javadoc - simply by using the antrun plugin instead. This would prevent the 
> addition of the basedir to the classpath.
> 
> - Jörg
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Re: [vfs] mvn3 eclipse fails

Posted by Jörg Schaible <jo...@gmx.de>.
Hi Ralph,

Ralph Goers wrote:

> For some reason Christian's message didn't arrive in the proper email
> folder so I never saw it.
> 
> Actually, the real problem here isn't as much the LICENSE and NOTICE files
> as it is checkstyle.xml.  It would be bad to have copy of that file in
> each sub-folder as the checkstyle rules would be likely to get out of
> synch.  However, it is probably good to have a single copy of the other
> files as well.

For the generated Eclipse project it is the additional resource (and 
testResource) definition of those two files in the commons-parent. It will 
*always* create a non-usable Eclipse project. Therefore I wonder if we can 
take the same approach for the main and test artifact as we do for the 
javadoc - simply by using the antrun plugin instead. This would prevent the 
addition of the basedir to the classpath.

- Jörg


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Re: [vfs] mvn3 eclipse fails

Posted by Ralph Goers <ra...@dslextreme.com>.
For some reason Christian's message didn't arrive in the proper email folder so I never saw it.  

Actually, the real problem here isn't as much the LICENSE and NOTICE files as it is checkstyle.xml.  It would be bad to have copy of that file in each sub-folder as the checkstyle rules would be likely to get out of synch.  However, it is probably good to have a single copy of the other files as well.

Ralph

On Jul 26, 2011, at 2:50 PM, Jörg Schaible wrote:

> Christian Grobmeier wrote:
> 
>> OK, then the mvn eclipse plugin 2.8 will fail when building it because
>> it does not support ".." path. Should we nail down the mvn-eclipse
>> version to 2.7 in the pom? We have something similar for the idea
>> plugin in the parent pom.
>> 
>> The other question is, if it is really a good idea to depend a sub
>> project to a top project (just because of two files). Wouldn't it be
>> better to copy LICENSE/NOTICE to core, examples and sandbox too?
> 
> Actually I was always tempted to create a profile active for eclipse project 
> generation that will omit the resource path for those two files.
> 
> - Jörg
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Re: [vfs] mvn3 eclipse fails

Posted by Jörg Schaible <jo...@gmx.de>.
Christian Grobmeier wrote:

> OK, then the mvn eclipse plugin 2.8 will fail when building it because
> it does not support ".." path. Should we nail down the mvn-eclipse
> version to 2.7 in the pom? We have something similar for the idea
> plugin in the parent pom.
> 
> The other question is, if it is really a good idea to depend a sub
> project to a top project (just because of two files). Wouldn't it be
> better to copy LICENSE/NOTICE to core, examples and sandbox too?

Actually I was always tempted to create a profile active for eclipse project 
generation that will omit the resource path for those two files.

- Jörg


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Re: [vfs] mvn3 eclipse fails

Posted by Christian Grobmeier <gr...@gmail.com>.
OK, then the mvn eclipse plugin 2.8 will fail when building it because
it does not support ".." path. Should we nail down the mvn-eclipse
version to 2.7 in the pom? We have something similar for the idea
plugin in the parent pom.

The other question is, if it is really a good idea to depend a sub
project to a top project (just because of two files). Wouldn't it be
better to copy LICENSE/NOTICE to core, examples and sandbox too?



On Sun, Jul 24, 2011 at 9:20 PM, Ralph Goers <ra...@dslextreme.com> wrote:
> Also, the change was incorrect as it was using basedir to locate the NOTICE and LICENSE files. basedir will refer to the core subproject, not the project root, which is where those files are located.
>
> On Jul 24, 2011, at 12:14 PM, Ralph Goers wrote:
>
>> I need to revert this. It breaks the site build.
>>
>> Ralph
>>
>> On Jul 24, 2011, at 6:30 AM, Christian Grobmeier wrote:
>>
>>> Thanks, it helped.
>>>
>>> Found out that m3 eclipse plugin 2.8 is not so good with relative
>>> paths as 2.7 was.
>>> i replaced the ".." path in the vfs-core with ${basedir}
>>>
>>> Hope thats ok for everybody, I am not a core committer to this component
>>>
>>>
>>> On Sun, Jul 24, 2011 at 2:13 PM, Gary Gregory <ga...@gmail.com> wrote:
>>>> I've not seen this exact issue but this kind of problem is not
>>>> uncommon with M3 compared to M2. You could try Running clean and then
>>>> upgrading to the latest common-parent. After that you can try
>>>> upgrading the plugins that blow up one at a time.  The catch 22 is
>>>> that newer plugins might not work in M2.
>>>>
>>>> Gary
>>>>
>>>> On Jul 24, 2011, at 5:33, Christian Grobmeier <gr...@gmail.com> wrote:
>>>>
>>>>> Just tried to build a eclipse project of vfs with mvn eclipse:eclipse
>>>>>
>>>>> My mvn version is 3.0.3. I get a weird error, so I am wondering if
>>>>> somebody has experienced it before (or something similar). I tried it
>>>>> from toplevel vfs and from core subfolder:
>>>>>
>>>>> $ mvn eclipse:eclipse
>>>>>
>>>>> ...
>>>>>
>>>>> [INFO] ------------------------------------------------------------------------
>>>>> [INFO] BUILD FAILURE
>>>>> [INFO] ------------------------------------------------------------------------
>>>>> [INFO] Total time: 2.151s
>>>>> [INFO] Finished at: Sun Jul 24 11:28:23 CEST 2011
>>>>> [INFO] Final Memory: 13M/81M
>>>>> [INFO] ------------------------------------------------------------------------
>>>>> [ERROR] Failed to execute goal
>>>>> org.apache.maven.plugins:maven-eclipse-plugin:2.8:eclipse
>>>>> (default-cli) on project commons-vfs2: Execution default-cli of goal
>>>>> org.apache.maven.plugins:maven-eclipse-plugin:2.8:eclipse failed:
>>>>> String index out of range: -5 -> [Help 1]
>>>>> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
>>>>> execute goal org.apache.maven.plugins:maven-eclipse-plugin:2.8:eclipse
>>>>> (default-cli) on project commons-vfs2: Execution default-cli of goal
>>>>> org.apache.maven.plugins:maven-eclipse-plugin:2.8:eclipse failed:
>>>>> String index out of range: -5
>>>>>   at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225)
>>>>>   at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>>>>>   at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>>>>>   at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
>>>>>   at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
>>>>>   at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
>>>>>   at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
>>>>>   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
>>>>>   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>>>>>   at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
>>>>>   at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>>>>>   at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>>>>>   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:597)
>>>>>   at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
>>>>>   at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
>>>>>   at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
>>>>>   at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
>>>>> Caused by: org.apache.maven.plugin.PluginExecutionException: Execution
>>>>> default-cli of goal
>>>>> org.apache.maven.plugins:maven-eclipse-plugin:2.8:eclipse failed:
>>>>> String index out of range: -5
>>>>>   at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110)
>>>>>   at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
>>>>>   ... 19 more
>>>>> Caused by: java.lang.StringIndexOutOfBoundsException: String index out
>>>>> of range: -5
>>>>>   at java.lang.String.substring(String.java:1937)
>>>>>   at java.lang.String.substring(String.java:1904)
>>>>>   at org.apache.maven.plugin.eclipse.writers.EclipseSettingsWriter.write(EclipseSettingsWriter.java:111)
>>>>>   at org.apache.maven.plugin.eclipse.EclipsePlugin.writeConfiguration(EclipsePlugin.java:1113)
>>>>>   at org.apache.maven.plugin.ide.AbstractIdeSupportMojo.execute(AbstractIdeSupportMojo.java:511)
>>>>>   at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
>>>>>   ... 20 more
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>>>>> For additional commands, e-mail: dev-help@commons.apache.org
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>>>> For additional commands, e-mail: dev-help@commons.apache.org
>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> http://www.grobmeier.de
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>>> For additional commands, e-mail: dev-help@commons.apache.org
>>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>
>



-- 
http://www.grobmeier.de

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Re: [vfs] mvn3 eclipse fails

Posted by Ralph Goers <ra...@dslextreme.com>.
Also, the change was incorrect as it was using basedir to locate the NOTICE and LICENSE files. basedir will refer to the core subproject, not the project root, which is where those files are located.

On Jul 24, 2011, at 12:14 PM, Ralph Goers wrote:

> I need to revert this. It breaks the site build.
> 
> Ralph
> 
> On Jul 24, 2011, at 6:30 AM, Christian Grobmeier wrote:
> 
>> Thanks, it helped.
>> 
>> Found out that m3 eclipse plugin 2.8 is not so good with relative
>> paths as 2.7 was.
>> i replaced the ".." path in the vfs-core with ${basedir}
>> 
>> Hope thats ok for everybody, I am not a core committer to this component
>> 
>> 
>> On Sun, Jul 24, 2011 at 2:13 PM, Gary Gregory <ga...@gmail.com> wrote:
>>> I've not seen this exact issue but this kind of problem is not
>>> uncommon with M3 compared to M2. You could try Running clean and then
>>> upgrading to the latest common-parent. After that you can try
>>> upgrading the plugins that blow up one at a time.  The catch 22 is
>>> that newer plugins might not work in M2.
>>> 
>>> Gary
>>> 
>>> On Jul 24, 2011, at 5:33, Christian Grobmeier <gr...@gmail.com> wrote:
>>> 
>>>> Just tried to build a eclipse project of vfs with mvn eclipse:eclipse
>>>> 
>>>> My mvn version is 3.0.3. I get a weird error, so I am wondering if
>>>> somebody has experienced it before (or something similar). I tried it
>>>> from toplevel vfs and from core subfolder:
>>>> 
>>>> $ mvn eclipse:eclipse
>>>> 
>>>> ...
>>>> 
>>>> [INFO] ------------------------------------------------------------------------
>>>> [INFO] BUILD FAILURE
>>>> [INFO] ------------------------------------------------------------------------
>>>> [INFO] Total time: 2.151s
>>>> [INFO] Finished at: Sun Jul 24 11:28:23 CEST 2011
>>>> [INFO] Final Memory: 13M/81M
>>>> [INFO] ------------------------------------------------------------------------
>>>> [ERROR] Failed to execute goal
>>>> org.apache.maven.plugins:maven-eclipse-plugin:2.8:eclipse
>>>> (default-cli) on project commons-vfs2: Execution default-cli of goal
>>>> org.apache.maven.plugins:maven-eclipse-plugin:2.8:eclipse failed:
>>>> String index out of range: -5 -> [Help 1]
>>>> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
>>>> execute goal org.apache.maven.plugins:maven-eclipse-plugin:2.8:eclipse
>>>> (default-cli) on project commons-vfs2: Execution default-cli of goal
>>>> org.apache.maven.plugins:maven-eclipse-plugin:2.8:eclipse failed:
>>>> String index out of range: -5
>>>>   at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225)
>>>>   at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>>>>   at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>>>>   at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
>>>>   at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
>>>>   at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
>>>>   at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
>>>>   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
>>>>   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>>>>   at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
>>>>   at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>>>>   at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>>>>   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:597)
>>>>   at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
>>>>   at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
>>>>   at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
>>>>   at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
>>>> Caused by: org.apache.maven.plugin.PluginExecutionException: Execution
>>>> default-cli of goal
>>>> org.apache.maven.plugins:maven-eclipse-plugin:2.8:eclipse failed:
>>>> String index out of range: -5
>>>>   at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110)
>>>>   at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
>>>>   ... 19 more
>>>> Caused by: java.lang.StringIndexOutOfBoundsException: String index out
>>>> of range: -5
>>>>   at java.lang.String.substring(String.java:1937)
>>>>   at java.lang.String.substring(String.java:1904)
>>>>   at org.apache.maven.plugin.eclipse.writers.EclipseSettingsWriter.write(EclipseSettingsWriter.java:111)
>>>>   at org.apache.maven.plugin.eclipse.EclipsePlugin.writeConfiguration(EclipsePlugin.java:1113)
>>>>   at org.apache.maven.plugin.ide.AbstractIdeSupportMojo.execute(AbstractIdeSupportMojo.java:511)
>>>>   at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
>>>>   ... 20 more
>>>> 
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>>>> For additional commands, e-mail: dev-help@commons.apache.org
>>>> 
>>> 
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>>> For additional commands, e-mail: dev-help@commons.apache.org
>>> 
>>> 
>> 
>> 
>> 
>> -- 
>> http://www.grobmeier.de
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>> For additional commands, e-mail: dev-help@commons.apache.org
>> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Re: [vfs] mvn3 eclipse fails

Posted by Ralph Goers <ra...@dslextreme.com>.
I need to revert this. It breaks the site build.

Ralph

On Jul 24, 2011, at 6:30 AM, Christian Grobmeier wrote:

> Thanks, it helped.
> 
> Found out that m3 eclipse plugin 2.8 is not so good with relative
> paths as 2.7 was.
> i replaced the ".." path in the vfs-core with ${basedir}
> 
> Hope thats ok for everybody, I am not a core committer to this component
> 
> 
> On Sun, Jul 24, 2011 at 2:13 PM, Gary Gregory <ga...@gmail.com> wrote:
>> I've not seen this exact issue but this kind of problem is not
>> uncommon with M3 compared to M2. You could try Running clean and then
>> upgrading to the latest common-parent. After that you can try
>> upgrading the plugins that blow up one at a time.  The catch 22 is
>> that newer plugins might not work in M2.
>> 
>> Gary
>> 
>> On Jul 24, 2011, at 5:33, Christian Grobmeier <gr...@gmail.com> wrote:
>> 
>>> Just tried to build a eclipse project of vfs with mvn eclipse:eclipse
>>> 
>>> My mvn version is 3.0.3. I get a weird error, so I am wondering if
>>> somebody has experienced it before (or something similar). I tried it
>>> from toplevel vfs and from core subfolder:
>>> 
>>> $ mvn eclipse:eclipse
>>> 
>>> ...
>>> 
>>> [INFO] ------------------------------------------------------------------------
>>> [INFO] BUILD FAILURE
>>> [INFO] ------------------------------------------------------------------------
>>> [INFO] Total time: 2.151s
>>> [INFO] Finished at: Sun Jul 24 11:28:23 CEST 2011
>>> [INFO] Final Memory: 13M/81M
>>> [INFO] ------------------------------------------------------------------------
>>> [ERROR] Failed to execute goal
>>> org.apache.maven.plugins:maven-eclipse-plugin:2.8:eclipse
>>> (default-cli) on project commons-vfs2: Execution default-cli of goal
>>> org.apache.maven.plugins:maven-eclipse-plugin:2.8:eclipse failed:
>>> String index out of range: -5 -> [Help 1]
>>> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
>>> execute goal org.apache.maven.plugins:maven-eclipse-plugin:2.8:eclipse
>>> (default-cli) on project commons-vfs2: Execution default-cli of goal
>>> org.apache.maven.plugins:maven-eclipse-plugin:2.8:eclipse failed:
>>> String index out of range: -5
>>>    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225)
>>>    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>>>    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>>>    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
>>>    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
>>>    at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
>>>    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
>>>    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
>>>    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>>>    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
>>>    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>>>    at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>>>    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:597)
>>>    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
>>>    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
>>>    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
>>>    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
>>> Caused by: org.apache.maven.plugin.PluginExecutionException: Execution
>>> default-cli of goal
>>> org.apache.maven.plugins:maven-eclipse-plugin:2.8:eclipse failed:
>>> String index out of range: -5
>>>    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110)
>>>    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
>>>    ... 19 more
>>> Caused by: java.lang.StringIndexOutOfBoundsException: String index out
>>> of range: -5
>>>    at java.lang.String.substring(String.java:1937)
>>>    at java.lang.String.substring(String.java:1904)
>>>    at org.apache.maven.plugin.eclipse.writers.EclipseSettingsWriter.write(EclipseSettingsWriter.java:111)
>>>    at org.apache.maven.plugin.eclipse.EclipsePlugin.writeConfiguration(EclipsePlugin.java:1113)
>>>    at org.apache.maven.plugin.ide.AbstractIdeSupportMojo.execute(AbstractIdeSupportMojo.java:511)
>>>    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
>>>    ... 20 more
>>> 
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>>> For additional commands, e-mail: dev-help@commons.apache.org
>>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>> For additional commands, e-mail: dev-help@commons.apache.org
>> 
>> 
> 
> 
> 
> -- 
> http://www.grobmeier.de
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Re: [vfs] mvn3 eclipse fails

Posted by Christian Grobmeier <gr...@gmail.com>.
Thanks, it helped.

Found out that m3 eclipse plugin 2.8 is not so good with relative
paths as 2.7 was.
i replaced the ".." path in the vfs-core with ${basedir}

Hope thats ok for everybody, I am not a core committer to this component


On Sun, Jul 24, 2011 at 2:13 PM, Gary Gregory <ga...@gmail.com> wrote:
> I've not seen this exact issue but this kind of problem is not
> uncommon with M3 compared to M2. You could try Running clean and then
> upgrading to the latest common-parent. After that you can try
> upgrading the plugins that blow up one at a time.  The catch 22 is
> that newer plugins might not work in M2.
>
> Gary
>
> On Jul 24, 2011, at 5:33, Christian Grobmeier <gr...@gmail.com> wrote:
>
>> Just tried to build a eclipse project of vfs with mvn eclipse:eclipse
>>
>> My mvn version is 3.0.3. I get a weird error, so I am wondering if
>> somebody has experienced it before (or something similar). I tried it
>> from toplevel vfs and from core subfolder:
>>
>> $ mvn eclipse:eclipse
>>
>> ...
>>
>> [INFO] ------------------------------------------------------------------------
>> [INFO] BUILD FAILURE
>> [INFO] ------------------------------------------------------------------------
>> [INFO] Total time: 2.151s
>> [INFO] Finished at: Sun Jul 24 11:28:23 CEST 2011
>> [INFO] Final Memory: 13M/81M
>> [INFO] ------------------------------------------------------------------------
>> [ERROR] Failed to execute goal
>> org.apache.maven.plugins:maven-eclipse-plugin:2.8:eclipse
>> (default-cli) on project commons-vfs2: Execution default-cli of goal
>> org.apache.maven.plugins:maven-eclipse-plugin:2.8:eclipse failed:
>> String index out of range: -5 -> [Help 1]
>> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
>> execute goal org.apache.maven.plugins:maven-eclipse-plugin:2.8:eclipse
>> (default-cli) on project commons-vfs2: Execution default-cli of goal
>> org.apache.maven.plugins:maven-eclipse-plugin:2.8:eclipse failed:
>> String index out of range: -5
>>    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225)
>>    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>>    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>>    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
>>    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
>>    at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
>>    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
>>    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
>>    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>>    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
>>    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>>    at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>>    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:597)
>>    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
>>    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
>>    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
>>    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
>> Caused by: org.apache.maven.plugin.PluginExecutionException: Execution
>> default-cli of goal
>> org.apache.maven.plugins:maven-eclipse-plugin:2.8:eclipse failed:
>> String index out of range: -5
>>    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110)
>>    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
>>    ... 19 more
>> Caused by: java.lang.StringIndexOutOfBoundsException: String index out
>> of range: -5
>>    at java.lang.String.substring(String.java:1937)
>>    at java.lang.String.substring(String.java:1904)
>>    at org.apache.maven.plugin.eclipse.writers.EclipseSettingsWriter.write(EclipseSettingsWriter.java:111)
>>    at org.apache.maven.plugin.eclipse.EclipsePlugin.writeConfiguration(EclipsePlugin.java:1113)
>>    at org.apache.maven.plugin.ide.AbstractIdeSupportMojo.execute(AbstractIdeSupportMojo.java:511)
>>    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
>>    ... 20 more
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>> For additional commands, e-mail: dev-help@commons.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>
>



-- 
http://www.grobmeier.de

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Re: [vfs] mvn3 eclipse fails

Posted by Gary Gregory <ga...@gmail.com>.
I've not seen this exact issue but this kind of problem is not
uncommon with M3 compared to M2. You could try Running clean and then
upgrading to the latest common-parent. After that you can try
upgrading the plugins that blow up one at a time.  The catch 22 is
that newer plugins might not work in M2.

Gary

On Jul 24, 2011, at 5:33, Christian Grobmeier <gr...@gmail.com> wrote:

> Just tried to build a eclipse project of vfs with mvn eclipse:eclipse
>
> My mvn version is 3.0.3. I get a weird error, so I am wondering if
> somebody has experienced it before (or something similar). I tried it
> from toplevel vfs and from core subfolder:
>
> $ mvn eclipse:eclipse
>
> ...
>
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 2.151s
> [INFO] Finished at: Sun Jul 24 11:28:23 CEST 2011
> [INFO] Final Memory: 13M/81M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-eclipse-plugin:2.8:eclipse
> (default-cli) on project commons-vfs2: Execution default-cli of goal
> org.apache.maven.plugins:maven-eclipse-plugin:2.8:eclipse failed:
> String index out of range: -5 -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
> execute goal org.apache.maven.plugins:maven-eclipse-plugin:2.8:eclipse
> (default-cli) on project commons-vfs2: Execution default-cli of goal
> org.apache.maven.plugins:maven-eclipse-plugin:2.8:eclipse failed:
> String index out of range: -5
>    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225)
>    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
>    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
>    at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
>    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
>    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
>    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
>    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>    at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>    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:597)
>    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
>    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
>    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
>    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> Caused by: org.apache.maven.plugin.PluginExecutionException: Execution
> default-cli of goal
> org.apache.maven.plugins:maven-eclipse-plugin:2.8:eclipse failed:
> String index out of range: -5
>    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110)
>    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
>    ... 19 more
> Caused by: java.lang.StringIndexOutOfBoundsException: String index out
> of range: -5
>    at java.lang.String.substring(String.java:1937)
>    at java.lang.String.substring(String.java:1904)
>    at org.apache.maven.plugin.eclipse.writers.EclipseSettingsWriter.write(EclipseSettingsWriter.java:111)
>    at org.apache.maven.plugin.eclipse.EclipsePlugin.writeConfiguration(EclipsePlugin.java:1113)
>    at org.apache.maven.plugin.ide.AbstractIdeSupportMojo.execute(AbstractIdeSupportMojo.java:511)
>    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
>    ... 20 more
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org