BTW I noticed in the plugin source that the "LocalSDK" definitions only go up to 4.0.0
On Aug 19, 10:07 am, btyla <[email protected]> wrote: > Hi, > > I' trying to generate a flashbuilder project from a swf maven project > using the 3.8-SNAPSHOT version but I'm getting a "String index out of > range: -1" fatal. Flexmojos version 3.7.1 works okay but gives > problems in the reactor build (next java project fails) so I switched > to 3.8-SNAPSHOT. Flex dependency in the pom is set to 4.1.0.16248. > > So is this a defect or an user error? > > >mvn -version > > Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200) > Java version: 1.6.0_21 > Java home: C:\Program Files\Java\jdk1.6.0_21\jre > Default locale: en_US, platform encoding: Cp1252 > OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows" > > > end of build: > > [ERROR] FATAL ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] String index out of range: -1 > [INFO] > ------------------------------------------------------------------------ > [DEBUG] Trace > java.lang.StringIndexOutOfBoundsException: String index out of range: > -1 > at java.lang.String.substring(String.java:1937) > at > org.sonatype.flexmojos.flexbuilder.sdk.LocalSdk.getBestVersion(LocalSdk.java: > 178) > at > org.sonatype.flexmojos.flexbuilder.sdk.LocalSdk.getEntries(LocalSdk.java: > 188) > at > org.sonatype.flexmojos.flexbuilder.sdk.LocalSdk.<init>(LocalSdk.java: > 64) > at > org.sonatype.flexmojos.flexbuilder.FlexbuilderMojo.writeConfiguration(FlexbuilderMojo.java: > 651) > at > org.apache.maven.plugin.ide.AbstractIdeSupportMojo.execute(AbstractIdeSupportMojo.java: > 494) > at > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java: > 490) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java: > 694) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java: > 569) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java: > 539) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java: > 387) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java: > 348) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java: > 180) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java: > 328) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java: > 138) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) > at > org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java: > 60) > 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) -- You received this message because you are subscribed to the Google Groups "Flex Mojos" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/flex-mojos http://flexmojos.sonatype.org/
