Are you using mvn 3.0.1?

Also, I think this is working now.  I'm not sure if I am doing something
different if it was fixed somewhere else.

In the main project I did a:
mvn clean install

Then in the app sub-project I did a:
mvn package


Now onto the next problem...  I'd like to remove the sign-air goal from
the app/pom.xml and run that manually.  However I get an error when I
try to do that:
[ERROR] Failed to execute goal
org.sonatype.flexmojos:flexmojos-maven-plugin:4.0-SNAPSHOT:sign-air
(default-cli) on project app: Error invoking AIR api:
NullPointerException -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
execute goal
org.sonatype.flexmojos:flexmojos-maven-plugin:4.0-SNAPSHOT:sign-air
(default-cli) on project app: Error invoking AIR api
        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:203)
        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:316)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:153)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:451)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:188)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:134)
        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: Error
invoking AIR api
        at
org.sonatype.flexmojos.plugin.air.SignAirMojo.doPackage(SignAirMojo.java:355)
        at
org.sonatype.flexmojos.plugin.air.SignAirMojo.execute_aroundBody0(SignAirMojo.java:369)
        at org.sonatype.flexmojos.plugin.air.SignAirMojo.execute_aroundBody1
$advice(SignAirMojo.java:24)
        at
org.sonatype.flexmojos.plugin.air.SignAirMojo.execute_aroundBody2(SignAirMojo.java:366)
        at org.sonatype.flexmojos.plugin.air.SignAirMojo.execute_aroundBody3
$advice(SignAirMojo.java:17)
        at
org.sonatype.flexmojos.plugin.air.SignAirMojo.execute(SignAirMojo.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
Caused by: java.lang.NullPointerException
        at
org.sonatype.flexmojos.plugin.air.SignAirMojo.getAirDescriptor_aroundBody4(SignAirMojo.java:393)
        at
org.sonatype.flexmojos.plugin.air.SignAirMojo.getAirDescriptor_aroundBody5$advice(SignAirMojo.java:37)
        at
org.sonatype.flexmojos.plugin.air.SignAirMojo.getAirDescriptor(SignAirMojo.java:1)
        at
org.sonatype.flexmojos.plugin.air.SignAirMojo.doPackage(SignAirMojo.java:222)
        ... 26 more


Any ideas?

Thanks!

-James


On Wed, 2010-12-29 at 06:40 -0800, aparrish wrote:
> I am seeing the following when I run the build. I have also tried with
> 4.0-beta-3, looks like we should try 4.0-beta-4 as well.
> 
> [INFO] Scanning for projects...
> [WARNING] The POM for org.apache.maven:maven-settings:jar:
> 3.0.1-20101122.160113-33 is missing, no dependency information
> available
> [WARNING] The POM for org.apache.maven:maven-settings-builder:jar:
> 3.0.1-20101122.160113-33 is missing, no dependency information
> available
> [WARNING] The POM for org.apache.maven:maven-repository-metadata:jar:
> 3.0.1-20101122.160113-33 is missing, no dependency information
> available
> [WARNING] The POM for org.apache.maven:maven-model-builder:jar:
> 3.0.1-20101122.160113-33 is missing, no dependency information
> available
> [WARNING] The POM for org.apache.maven:maven-aether-provider:jar:
> 3.0.1-20101122.160113-33 is missing, no dependency information
> available
> [ERROR] Internal error: java.lang.ClassCastException:
> org.apache.maven.artifact.repository.MavenArtifactRepository cannot be
> cast to org.apache.maven.artifact.repository.ArtifactRepository ->
> [Help 1]
> org.apache.maven.InternalErrorException: Internal error:
> java.lang.ClassCastException:
> org.apache.maven.artifact.repository.MavenArtifactRepository cannot be
> cast to org.apache.maven.artifact.repository.ArtifactRepository
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:
> 163)
>         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: java.lang.ClassCastException:
> org.apache.maven.artifact.repository.MavenArtifactRepository cannot be
> cast to org.apache.maven.artifact.repository.ArtifactRepository
>         at
> org.sonatype.flexmojos.plugin.ChecksumEnforcerMavenExtension.afterProjectsRead(ChecksumEnforcerMavenExtension.java:
> 24)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:
> 268)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:
> 151)
>         ... 11 more
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with
> the -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> 
> On Dec 26, 2:30 pm, James Ward <[email protected]> wrote:
> > I have a simple project structure but I'm having SWC dependency
> > issues.  My project has an AIR app module and a SWC library module.
> > Everything is on github:https://github.com/jlward4th/fmtest
> >
> > When I run the build from the top level project everything works
> > fine.  But when I try to run the build from within the AIR app module
> > it can't find the SWC library:
> >
> > jam...@w500:~/projects/fmtest/app$ mvn package
> > [INFO]
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Building fmtest app 1.0-SNAPSHOT
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] BUILD FAILURE
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Total time: 2.547s
> > [INFO] Finished at: Sun Dec 26 12:29:34 MST 2010
> > [INFO] Final Memory: 12M/165M
> > [INFO]
> > ------------------------------------------------------------------------
> > [ERROR] Failed to execute goal on project app: Could not resolve
> > dependencies for project fmtest:app:swf:1.0-SNAPSHOT: Failed to
> > collect dependencies for [com.adobe.flex.framework:air-framework:pom:
> > 4.5.0.18623 (compile), fmtest:lib:swc:1.0-SNAPSHOT (compile)]: Failed
> > to read artifact descriptor for fmtest:lib:swc:1.0-SNAPSHOT: Failure
> > to find fmtest:fmtest:pom:1.0-SNAPSHOT 
> > inhttp://repository.sonatype.org/content/groups/flexgroup
> > was cached in the local repository, resolution will not be reattempted
> > until the update interval of flexmojos has elapsed or updates are
> > forced -> [Help 1]
> >
> > Any ideas what I've done wrong?
> >
> > Thanks!
> >
> > -James
> 


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