Hi,

I came across this post while searching for the same problem. Here is my 
pom file below.

<?xml version="1.0" encoding="UTF-8"?>
<project>
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.tomtom.test</groupId>
    <artifactId>flexmojos-application</artifactId>
    <version>1.0-SNAPSHOT</version>
    <packaging>swc</packaging>
    <name>flexmojos-application Flex</name>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <flex.sdk.version>4.5.1.21328</flex.sdk.version>
        <flexmojos.version>5.0-beta</flexmojos.version>
    </properties>
    <build>
        <sourceDirectory>src/main/flex</sourceDirectory>
        <testSourceDirectory>src/test/flex</testSourceDirectory>
        <plugins>
            <plugin>
                <groupId>net.flexmojos.oss</groupId>
                <artifactId>flexmojos-maven-plugin</artifactId>
                <version>${flexmojos.version}</version>
                <extensions>true</extensions>
            </plugin>
        </plugins>
    </build>
    <dependencies>
        <dependency>
            <groupId>com.adobe.flex.framework</groupId>
            <artifactId>flex-framework</artifactId>
            <version>${flex.sdk.version}</version>
            <type>pom</type>
        </dependency>
        <dependency>
            <groupId>net.flexmojos.oss</groupId>
            <artifactId>flexmojos-unittest-support</artifactId>
            <version>${flexmojos.version}</version>
            <type>swc</type>
            <scope>test</scope>
        </dependency>
    </dependencies>
</project>


Appreciate your help.


Regards,
Nandu


On Thursday, August 2, 2012 12:15:16 PM UTC+5:30, Christofer Dutz wrote:
>
> Could you please post your pom? 
>
> 2012/7/30 misterbenn <[email protected] <javascript:>>: 
> > 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]<javascript:> 
> > To unsubscribe from this group, send email to 
> > [email protected] <javascript:> 
> > 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