Return-Path: Delivered-To: apmail-axis-java-dev-archive@www.apache.org Received: (qmail 84701 invoked from network); 13 Apr 2010 10:27:13 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 Apr 2010 10:27:13 -0000 Received: (qmail 66539 invoked by uid 500); 13 Apr 2010 10:27:12 -0000 Delivered-To: apmail-axis-java-dev-archive@axis.apache.org Received: (qmail 65971 invoked by uid 500); 13 Apr 2010 10:27:12 -0000 Mailing-List: contact java-dev-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@axis.apache.org Delivered-To: mailing list java-dev@axis.apache.org Received: (qmail 65955 invoked by uid 99); 13 Apr 2010 10:27:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Apr 2010 10:27:11 +0000 X-ASF-Spam-Status: No, hits=-1274.3 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Apr 2010 10:27:10 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o3DAQnLS008782 for ; Tue, 13 Apr 2010 06:26:49 -0400 (EDT) Message-ID: <18455390.18741271154409525.JavaMail.jira@thor> Date: Tue, 13 Apr 2010 06:26:49 -0400 (EDT) From: "Katherine Sanders (JIRA)" To: java-dev@axis.apache.org Subject: [jira] Resolved: (AXIS2-4676) mvn eclipse:eclipse StringIndexOutOfBoundsException In-Reply-To: <27983870.24731271085642005.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AXIS2-4676?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Katherine Sanders resolved AXIS2-4676. -------------------------------------- Resolution: Fixed Thanks for the documentation Andreas, the eclipse generation works with maven 2.2.1 and the command: mvn process-test-resources org.apache.maven.plugins:maven-eclipse-plugin:2.7:eclipse > mvn eclipse:eclipse StringIndexOutOfBoundsException > --------------------------------------------------- > > Key: AXIS2-4676 > URL: https://issues.apache.org/jira/browse/AXIS2-4676 > Project: Axis2 > Issue Type: Bug > Components: Tools > Environment: Apache Maven 2.0.11 (r909250; 2010-02-12 05:55:50+0000) > Java version: 1.6.0_16 > Java home: C:\Program Files\Java\jdk1.6.0_16\jre > Default locale: en_GB, platform encoding: Cp1252 > OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows" > Reporter: Katherine Sanders > Priority: Minor > > The following error occurs when building the axis2-mar-maven-plugin and axis2-aar-maven-plugin modules: > [INFO] ------------------------------------------------------------------------ > [INFO] Building Apache Axis2 - tool - MAR Maven Plugin > [INFO] task-segment: [eclipse:eclipse] > [INFO] ------------------------------------------------------------------------ > [INFO] Preparing eclipse:eclipse > [INFO] [plugin:descriptor] > [INFO] Using 'UTF-8' encoding to read mojo metadata. > [INFO] Applying mojo extractor for language: java > [WARNING] org.apache.axis2.maven2.mar.MarMojo#jarArchiver: > [WARNING] The syntax > [WARNING] @parameter expression="${component.#}" > [WARNING] is deprecated, please use > [WARNING] @component role="" roleHint="" > [WARNING] instead. > [INFO] Mojo extractor for language: java found 3 mojo descriptors. > [INFO] Applying mojo extractor for language: bsh > [INFO] Mojo extractor for language: bsh found 0 mojo descriptors. > [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. > [INFO] Setting property: velocimacro.messages.on => 'false'. > [INFO] Setting property: resource.loader => 'classpath'. > [INFO] Setting property: resource.manager.logwhenfound => 'false'. > [INFO] [remote-resources:process {execution: default}] > [INFO] [eclipse:eclipse] > [INFO] Using Eclipse Workspace: null > [INFO] Adding default classpath container: org.eclipse.jdt.launching.JRE_CONTAINER > [INFO] ------------------------------------------------------------------------ > [ERROR] FATAL ERROR > [INFO] ------------------------------------------------------------------------ > [INFO] String index out of range: -36 > [INFO] ------------------------------------------------------------------------ > [INFO] Trace > java.lang.StringIndexOutOfBoundsException: String index out of range: -36 > 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.DefaultPluginManager.executeMojo(DefaultPluginManager.java:454) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:513) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:483) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:331) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:292) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:345) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:132) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:290) > 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.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: 6 seconds > [INFO] Finished at: Mon Apr 12 16:06:25 BST 2010 > [INFO] Final Memory: 20M/37M > [INFO] ------------------------------------------------------------------------ > [INFO] ------------------------------------------------------------------------ > [INFO] Building Apache Axis2 - tool - AAR Maven Plugin > [INFO] task-segment: [eclipse:eclipse] > [INFO] ------------------------------------------------------------------------ > [INFO] Preparing eclipse:eclipse > [INFO] [plugin:descriptor] > [INFO] Using 'UTF-8' encoding to read mojo metadata. > [INFO] Applying mojo extractor for language: java > [WARNING] org.apache.axis2.maven2.aar.AarMojo#jarArchiver: > [WARNING] The syntax > [WARNING] @parameter expression="${component.#}" > [WARNING] is deprecated, please use > [WARNING] @component role="" roleHint="" > [WARNING] instead. > [INFO] Mojo extractor for language: java found 4 mojo descriptors. > [INFO] Applying mojo extractor for language: bsh > [INFO] Mojo extractor for language: bsh found 0 mojo descriptors. > [INFO] [remote-resources:process {execution: default}] > [INFO] [eclipse:eclipse] > [INFO] Using Eclipse Workspace: null > [INFO] Adding default classpath container: org.eclipse.jdt.launching.JRE_CONTAINER > [INFO] ------------------------------------------------------------------------ > [ERROR] FATAL ERROR > [INFO] ------------------------------------------------------------------------ > [INFO] String index out of range: -36 > [INFO] ------------------------------------------------------------------------ > [INFO] Trace > java.lang.StringIndexOutOfBoundsException: String index out of range: -36 > 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.DefaultPluginManager.executeMojo(DefaultPluginManager.java:454) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:513) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:483) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:331) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:292) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:345) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:132) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:290) > 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.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 minute > [INFO] Finished at: Mon Apr 12 16:09:15 BST 2010 > [INFO] Final Memory: 36M/63M > [INFO] ------------------------------------------------------------------------ > If you take those projects out of the top level pom.xml file, mvn eclipse:eclipse succeeds for the other modules. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org For additional commands, e-mail: java-dev-help@axis.apache.org