Could you please post your pom?

2012/7/30 misterbenn <[email protected]>:
> HI,
>
> I'm just in the process of updating a project to use Flexmojos 5.0-beta from
> 4.1, however I'm getting an error when it attempts to run unit tests:
>
> Failed to resolve artifact
> net.flexmojos.oss:flexmojos-unittest-support:swc:flex:${project.version}
>
> I'm unsure why it's trying to use the project version for Flexmojos - there
> is no explicit reference to flexmojos-unittest-support in any POM
>
> If it's any help, here is the stacktrace:
>
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> goal net.flexmojos.oss:flexmojos-maven-plugin:5.0-beta:test-compile
> (default-test-compile) on project core:
> java.lang.reflect.InvocationTargetException
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
> 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.MojoExecutionException:
> java.lang.reflect.InvocationTargetException
> at
> net.flexmojos.oss.plugin.compiler.AbstractFlexCompilerMojo.executeCompiler(AbstractFlexCompilerMojo.java:1685)
> at
> net.flexmojos.oss.plugin.test.TestCompilerMojo.buildTest(TestCompilerMojo.java:254)
> at
> net.flexmojos.oss.plugin.test.TestCompilerMojo.buildTests(TestCompilerMojo.java:274)
> at
> net.flexmojos.oss.plugin.test.TestCompilerMojo.execute_aroundBody0(TestCompilerMojo.java:312)
> at
> net.flexmojos.oss.plugin.test.TestCompilerMojo.execute_aroundBody1$advice(TestCompilerMojo.java:53)
> at
> net.flexmojos.oss.plugin.test.TestCompilerMojo.execute_aroundBody2(TestCompilerMojo.java:286)
> at
> net.flexmojos.oss.plugin.test.TestCompilerMojo.execute_aroundBody3$advice(TestCompilerMojo.java:31)
> at
> net.flexmojos.oss.plugin.test.TestCompilerMojo.execute_aroundBody4(TestCompilerMojo.java:1)
> at
> net.flexmojos.oss.plugin.test.TestCompilerMojo.execute_aroundBody5$advice(TestCompilerMojo.java:34)
> at
> net.flexmojos.oss.plugin.test.TestCompilerMojo.execute(TestCompilerMojo.java:1)
> at
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
> ... 19 more
> Caused by: java.lang.RuntimeException:
> java.lang.reflect.InvocationTargetException
> at
> net.flexmojos.oss.compiler.util.DefaultFlexCompilerArgumentParser.getArgumentsList(DefaultFlexCompilerArgumentParser.java:73)
> at
> net.flexmojos.oss.compiler.util.DefaultFlexCompilerArgumentParser.getArgumentsList(DefaultFlexCompilerArgumentParser.java:61)
> at
> net.flexmojos.oss.compiler.DefaultFlexCompiler.compileSwf(DefaultFlexCompiler.java:64)
> at net.flexmojos.oss.plugin.compiler.MxmlcMojo.doCompile(MxmlcMojo.java:157)
> at net.flexmojos.oss.plugin.compiler.MxmlcMojo.doCompile(MxmlcMojo.java:1)
> at
> net.flexmojos.oss.plugin.compiler.AbstractFlexCompilerMojo.executeCompiler(AbstractFlexCompilerMojo.java:1681)
> ... 30 more
> Caused by: java.lang.reflect.InvocationTargetException
> 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
> net.flexmojos.oss.compiler.util.DefaultFlexCompilerArgumentParser.doGetArgs(DefaultFlexCompilerArgumentParser.java:110)
> at
> net.flexmojos.oss.compiler.util.DefaultFlexCompilerArgumentParser.doGetArgs(DefaultFlexCompilerArgumentParser.java:123)
> at
> net.flexmojos.oss.compiler.util.DefaultFlexCompilerArgumentParser.getArgumentsList(DefaultFlexCompilerArgumentParser.java:69)
> ... 35 more
> Caused by: net.flexmojos.oss.plugin.RuntimeMavenResolutionException: Failed
> to resolve artifact
> net.flexmojos.oss:flexmojos-unittest-support:swc:flex:${project.version}
> at
> net.flexmojos.oss.plugin.AbstractMavenMojo.resolve(AbstractMavenMojo.java:715)
> at
> net.flexmojos.oss.plugin.test.TestCompilerMojo.getFlexmojosTestArtifact(TestCompilerMojo.java:436)
> at
> net.flexmojos.oss.plugin.test.TestCompilerMojo.getFlexmojosUnittestSupport_aroundBody14(TestCompilerMojo.java:487)
> at
> net.flexmojos.oss.plugin.test.TestCompilerMojo.getFlexmojosUnittestSupport_aroundBody15$advice(TestCompilerMojo.java:40)
> at
> net.flexmojos.oss.plugin.test.TestCompilerMojo.getFlexmojosUnittestSupport(TestCompilerMojo.java:1)
> at
> net.flexmojos.oss.plugin.test.TestCompilerMojo.getIncludeLibraries_aroundBody16(TestCompilerMojo.java:521)
> at
> net.flexmojos.oss.plugin.test.TestCompilerMojo.getIncludeLibraries_aroundBody17$advice(TestCompilerMojo.java:40)
> at
> net.flexmojos.oss.plugin.test.TestCompilerMojo.getIncludeLibraries(TestCompilerMojo.java:1)
> ... 42 more
>
> --
> 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/

-- 
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/

Reply via email to