I am looking into this now and will have it fixed shortly. I created a issue report to help track progress on this. https://issues.sonatype.org/browse/FLEXMOJOS-343
Lance On Aug 19, 7:33 am, btyla <[email protected]> wrote: > 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.jav > > a: > > 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(Flexb > > uilderMojo.java: > > 651) > > at > > org.apache.maven.plugin.ide.AbstractIdeSupportMojo.execute(AbstractIdeSuppo > > rtMojo.java: > > 494) > > at > > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManag > > er.java: > > 490) > > at > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLif > > ecycleExecutor.java: > > 694) > > at > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(D > > efaultLifecycleExecutor.java: > > 569) > > at > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLife > > cycleExecutor.java: > > 539) > > at > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFai > > lures(DefaultLifecycleExecutor.java: > > 387) > > at > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(Def > > aultLifecycleExecutor.java: > > 348) > > at > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycl > > eExecutor.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(DelegatingMethodAccessorImp > > l.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/
