I'm upgrading a Flexmojos 3.6.1 project to 4.0-alpha-5 and am running
into some problems with the "external" scope.

I am building a swc as part of a multi-module project and the build
fails with the "external" scope. The module POM looks like:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
        <modelVersion>4.0.0</modelVersion>
        <parent>
                <artifactId>beinggirl-widgets</artifactId>
                <groupId>com.wunderman.beinggirl</groupId>
                <version>1.0-SNAPSHOT</version>
        </parent>
        <groupId>com.wunderman.beinggirl</groupId>
        <version>1.0-SNAPSHOT</version>
        <artifactId>beinggirl-widget-common</artifactId>
        <packaging>swc</packaging>
        <name>beinggirl-widget-common</name>
        <dependencies>
                <dependency>
                        <groupId>com.wunderman.beinggirl</groupId>
                        <artifactId>beinggirl-common</artifactId>
                        <version>1.0-SNAPSHOT</version>
                        <type>swc</type>
                        <!-- <scope>external</scope> -->
                </dependency>
        </dependencies>
        <build>
                <plugins>
                        <plugin>
                                <groupId>org.sonatype.flexmojos</groupId>
                                <artifactId>flexmojos-maven-plugin</artifactId>
                                <version>${flexmojos.version}</version>
                                <extensions>true</extensions>           
                                <configuration>
                                        
<sourceFile>${project.build.sourceDirectory}/com/wunderman/beinggirl/view/widgets/AbstractWidget.as</sourceFile>
                                        <sourcePaths>
                                                
<path>${project.build.sourceDirectory}</path>
                                        </sourcePaths>
                                </configuration>
                        </plugin>
                </plugins>
        </build>        
        
</project>

If I uncomment the <scope> declaration the build fails. With very
little error information (mvn install -X):

...
Writing configuration dump to
/Volumes/DATA/Users/williamsonm/git/PGBeingGirlHomeFlashModule/trunk/widgets/common/target/beinggirl-widget-common-1.0-SNAPSHOT-configs.xml
Failed to match the compile target with
/Volumes/DATA/Users/williamsonm/git/PGBeingGirlHomeFlashModule/trunk/widgets/common/target/beinggirl-widget-common-1.0-SNAPSHOT.swc.cache.
The cache file will not be reused.
Error: null

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.473s
[INFO] Finished at: Tue Oct 12 17:03:30 BST 2010
[INFO] Final Memory: 12M/265M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.sonatype.flexmojos:flexmojos-maven-plugin:4.0-alpha-5:compile-swc
(default-compile-swc) on project beinggirl-widget-common: Got 1 errors
building project, check logs -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
execute goal 
org.sonatype.flexmojos:flexmojos-maven-plugin:4.0-alpha-5:compile-swc
(default-compile-swc) on project beinggirl-widget-common: Got 1 errors
building project, check logs
        at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:199)
        at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
        at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:140)
        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:314)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:151)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:445)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:168)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:132)
        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.MojoFailureException: Got 1 errors
building project, check logs
        at 
org.sonatype.flexmojos.plugin.AbstractMavenMojo.checkResult(AbstractMavenMojo.java:260)
        at 
org.sonatype.flexmojos.plugin.compiler.AbstractFlexCompilerMojo.executeCompiler(AbstractFlexCompilerMojo.java:1497)
        at 
org.sonatype.flexmojos.plugin.compiler.CompcMojo.execute_aroundBody0(CompcMojo.java:221)
        at 
org.sonatype.flexmojos.plugin.compiler.CompcMojo.execute_aroundBody1$advice(CompcMojo.java:36)
        at 
org.sonatype.flexmojos.plugin.compiler.CompcMojo.execute_aroundBody2(CompcMojo.java:215)
        at 
org.sonatype.flexmojos.plugin.compiler.CompcMojo.execute_aroundBody3$advice(CompcMojo.java:17)
        at 
org.sonatype.flexmojos.plugin.compiler.CompcMojo.execute(CompcMojo.java:1)
        at 
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107)
        at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:195)
        ... 19 more
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

Obviously I need the scope to be external as the code is being loaded
at runtime be another part of the application.

Should I be using a different scope with Flexmojos 4?

Cheers,

-- 
mischa (aka muji).

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