This is a Problem I had in several Projects. I solved it by using the copy resources Mojo of FM 3.7.1
Chris 2011/10/28 velo <[email protected]>: > Well, it may be also some FM bug, since I don't even try to run it on > mac OS =/ > > On Oct 28, 10:54 am, David Vree <[email protected]> wrote: >> @Bryan -- IIRC Maven has a number of properties that can drive things >> based on the OS: >> >> os.name >> os.arch >> os.version >> >> If you have a complicated build, I'd start be searching all the >> effective POMs of all the modules for these to see if they are used in >> profiles or in artifact classifiers. Just to rule out its not your >> POMs that are OS specific... >> >> On Oct 28, 7:58 am, Bryan Turner <[email protected]> wrote: >> >> >> >> >> >> >> >> > I've been working on porting one of my FlexMojos projects to 4.0-RC2 and >> > Maven 3.0.3. I've started getting this error as well, but I have another >> > twist to throw into the works: I only get this error on MacOS. Under >> > Windows >> > 7, the build runs perfectly. >> >> > On MacOS, I get output like this: >> > [INFO] --- flexmojos-maven-plugin:4.0-RC2:copy-flex-resources (copy-fx-ui) >> > @ >> > katasoft-shogun-web --- >> > [INFO] Flexmojos 4.0-RC2 >> > [INFO] Apache License - Version 2.0 (NO WARRANTY) - See COPYRIGHT file >> > Downloading:http://repo1.maven.org/maven2/com/adobe/flex/aglj40/4.1.0.16076/aglj4... >> > ... There are many more downloading lines here for other artifacts ... >> > [WARNING] Failed to retrieve pom for >> > com.katasoft.shogun.fx:katasoft-shogun-fx-ui:swf:0.11.0-SNAPSHOT:compile >> > [INFO] >> > ------------------------------------------------------------------------ >> > [INFO] BUILD FAILURE >> > [INFO] >> > ------------------------------------------------------------------------ >> > [INFO] Total time: 21.709s >> > [INFO] Finished at: Fri Oct 28 21:48:50 EST 2011 >> > [INFO] Final Memory: 16M/265M >> > [INFO] >> > ------------------------------------------------------------------------ >> > [ERROR] Failed to execute goal >> > org.sonatype.flexmojos:flexmojos-maven-plugin:4.0-RC2:copy-flex-resources >> > (copy-fx-ui) on project katasoft-shogun-web: Execution copy-fx-ui of goal >> > org.sonatype.flexmojos:flexmojos-maven-plugin:4.0-RC2:copy-flex-resources >> > failed. NullPointerException -> [Help 1] >> > [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: >> > [ERROR] [Help >> > 1]http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionExcep... >> >> > On Windows, the output looks much different: >> > [INFO] --- flexmojos-maven-plugin:4.0-RC2:copy-flex-resources (copy-fx-ui) >> > @ >> > katasoft-shogun-web --- >> > [INFO] Flexmojos 4.0-RC2 >> > [INFO] Apache License - Version 2.0 (NO WARRANTY) - See COPYRIGHT file >> > [INFO] >> > ... Many other goals that don't happen on the Mac because the build fails >> > ... >> > [INFO] >> > ------------------------------------------------------------------------ >> > [INFO] BUILD SUCCESS >> > [INFO] >> > ------------------------------------------------------------------------ >> > [INFO] Total time: 17.759s >> > [INFO] Finished at: Fri Oct 28 21:39:14 EST 2011 >> > [INFO] Final Memory: 39M/487M >> > [INFO] >> > ------------------------------------------------------------------------ >> >> > Note that on the Windows PC all the downloads that happen on the Mac don't >> > happen. Based on the code in CopyMojo.java, I'm guessing this is not a >> > FlexMojos bug--it looks to me like a difference between how Maven's >> > internals work between Windows and Mac. >> >> > Maven details from MacOS: >> > Auri:web bturner$ mvn -v >> > Apache Maven 3.0.3 (r1075438; 2011-03-01 04:31:09+1100) >> > Maven home: /Users/bturner/Development/apache-maven-3.0.3 >> > Java version: 1.6.0_26, vendor: Apple Inc. >> > Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home >> > Default locale: en_US, platform encoding: MacRoman >> > OS name: "mac os x", version: "10.7.2", arch: "x86_64", family: "mac" >> >> > Maven details from Windows 7: >> > C:\Users\Bryan>mvn -v >> > Apache Maven 3.0.3 (r1075438; 2011-03-01 04:31:09+1100) >> > Maven home: C:\Development\apache-maven-3.0.3 >> > Java version: 1.7.0_01, vendor: Oracle Corporation >> > Java home: C:\Program Files\Java\jdk1.7.0\jre >> > Default locale: en_US, platform encoding: Cp1252 >> > OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows" >> >> > The difference doesn't appear to be related to the fact that this Windows 7 >> > machine is running Java 7; when I reboot the Mac into its bootcamp copy of >> > Windows 7, I have the following: >> > C:\Users\Bryan>mvn -v >> > Apache Maven 3.0.3 (r1075438; 2011-02-28 10:31:09-0700) >> > Maven home: C:\Development\apache-maven-3.0.3 >> > Java version: 1.6.0_27, vendor: Sun Microsystems Inc. >> > Java home: C:\Program Files\Java\jdk1.6.0\jre >> > Default locale: en_US, platform encoding: Cp1252 >> > OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows" >> >> > Java 6u27 and the build still works correctly. It definitely seems to be >> > related to Maven 3 on MacOS. >> >> > Any thoughts? >> > Bryan Turner >> >> > On Wed, Oct 12, 2011 at 4:17 AM, velo <[email protected]> wrote: >> > > FWIW >> >> > >https://issues.sonatype.org/browse/FLEXMOJOS-376?focusedCommentId=140... >> >> > > It is a long shot, but may be it will help. >> >> > > On Oct 8, 1:35 pm, Remi P <[email protected]> wrote: >> > > > same problem with the 4.0-RC2 when trying to build the todo-list >> > > > sample. >> > > > it seems that the problem comes from the useFinalName property >> > > > this property is set by default to true >> > > > so if you had not set a <finalName> tag in your swf pom, it throws a >> > > > NPE on the CopyMojo.java line 211: >> >> > > > pomProject.getBuild().getFinalName() >> >> > > > the workaround is to configure teh copy-flex-resources goal with >> > > > <useFinalName>false</useFinalName> >> >> > > > I think that Velo should switch the default value of the useFinalName >> > > > property to false to prevent this problem. >> >> > > > regards >> >> > > > remi P >> >> > > > On Fri, Jul 22, 2011 at 1:24 PM, Christofer Dutz >> >> > > > <[email protected]> wrote: >> >> > > > > Hi, >> >> > > > > I guess this problem is related to something in my build. I am >> > > > > getting >> > > > > this error after upgrading from FM3.7 to FM4.0-RC1 in one of my >> > > > > Projects. In another project (similar complexity) I am not getting >> > > > > this error. >> >> > > > > [ERROR] Failed to execute goal >> >> > > org.sonatype.flexmojos:flexmojos-maven-plugin:4.0-RC1:copy-flex-resources >> > > > > (default) on project de.upw.tiller.pgm.webapp.blazeds.server: >> > > > > Execution default of goal >> >> > > org.sonatype.flexmojos:flexmojos-maven-plugin:4.0-RC1:copy-flex-resources >> > > > > failed. NullPointerException -> [Help 1] >> > > > > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to >> > > > > execute goal >> > > org.sonatype.flexmojos:flexmojos-maven-plugin:4.0-RC1:copy-flex-resources >> > > > > (default) on project de.upw.tiller.pgm.webapp.blazeds.server: >> > > > > Execution default of goal >> >> > > org.sonatype.flexmojos:flexmojos-maven-plugin:4.0-RC1:copy-flex-resources >> > > > > failed. >> > > > > at >> > > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225) >> > > > > 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) >> > > > > at org.codehaus.classworlds.Launcher.main(Launcher.java:47) >> > > > > 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 >> > > com.intellij.rt.execution.application.AppMain.main(AppMain.java:120) >> > > > > Caused by: org.apache.maven.plugin.PluginExecutionException: >> > > > > Execution >> > > > > default of goal >> >> > > org.sonatype.flexmojos:flexmojos-maven-plugin:4.0-RC1:copy-flex-resources >> > > > > failed. >> > > > > at >> > > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110) >> > > > > at >> > > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) >> > > > > >> >> ... >> >> read 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/
