VELO, I noticed I didn't even get the courtesy of a snarky reply like you gave to some of the other posts yesterday. Can you at least tell me how I can improve my question for you?
Perhaps you ignored it because I used my own local repo, though I noticed in this group that you pointed folks to the same script that I ran to create it. I tried the official repo, but I had another issue with that which I can create another post for if that helps. If I'm doing something dumb, a hint or dope slap would be helpful. Thanks, Michael Bushe On Aug 9, 3:55 pm, Michael Bushe <[email protected]> wrote: > I've been using FM 3.8 for over a year and am trying to upgrade to 4.0- > RC1. I'm unable to get HelloWorld.mxml to compile due to a > NullPointerException in > DefaultFlashPlayerTruster.updateSecuritySandbox . I reproduced this > on Linux, Windows 7 and Windows XP. > > I'm running this (settings.xml and pom.xml below): > mvn -s ..\settings.xml -X clean install > > [ERROR] Failed to execute goal org.sonatype.flexmojos:flexmojos-maven- > plugin:4.0-RC1:compile-swf (default-compile-swf) o > n project flexfour: null: MojoExecutionException: NullPointerException > -> [Help 1] > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to > execute goal org.sonatype.flexmojos:flexmojos-maven-pl > ugin:4.0-RC1:compile-swf (default-compile-swf) on project flexfour: > null > 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: > 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.MojoExecutionException > at > org.sonatype.flexmojos.plugin.compiler.AbstractFlexCompilerMojo.executeCompiler(AbstractFlexCompilerMojo.java > :1644) > at > org.sonatype.flexmojos.plugin.compiler.MxmlcMojo.execute_aroundBody0(MxmlcMojo.java: > 152) > at > org.sonatype.flexmojos.plugin.compiler.MxmlcMojo.execute_aroundBody1$advice(MxmlcMojo.java: > 36) > at > org.sonatype.flexmojos.plugin.compiler.MxmlcMojo.execute_aroundBody2(MxmlcMojo.java: > 146) > at > org.sonatype.flexmojos.plugin.compiler.MxmlcMojo.execute_aroundBody3$advice(MxmlcMojo.java: > 14) > at > org.sonatype.flexmojos.plugin.compiler.MxmlcMojo.execute_aroundBody4(MxmlcMojo.java: > 1) > at > org.sonatype.flexmojos.plugin.compiler.MxmlcMojo.execute_aroundBody5$advice(MxmlcMojo.java: > 17) > at > org.sonatype.flexmojos.plugin.compiler.MxmlcMojo.execute(MxmlcMojo.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.truster.DefaultFlashPlayerTruster.updateSecuritySandbox(DefaultFlashPlayerTruster.java > :42) > at > org.sonatype.flexmojos.plugin.compiler.MxmlcMojo.doCompile(MxmlcMojo.java: > 138) > at > org.sonatype.flexmojos.plugin.compiler.MxmlcMojo.doCompile(MxmlcMojo.java: > 1) > at > org.sonatype.flexmojos.plugin.compiler.AbstractFlexCompilerMojo.executeCompiler(AbstractFlexCompilerMojo.java > :1640) > ... 28 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/MojoExecutionException > > My settings.xml is simple, it just points to a local repo: > <settings> > <localRepository>c:/maven/repos/flexmojos4-sdkviascript</ > localRepository> > </settings> > > My pom.xml is pretty straightforward. I set the repos in the > pom.xml. I'm using my own repo with 4.1 deployed according to the > scripts provided by Drago Dascalita's blog post. I tried using the > sonatype repo and came across different issues, which I can make > another post on: > <?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.0http://maven.apache.org/maven-v4_0_0.xsd"> > <modelVersion>4.0.0</modelVersion> > > <groupId>com.foo.em.flexfour</groupId> > <artifactId>flexfour</artifactId> > <version>1.0-SNAPSHOT</version> > <packaging>swf</packaging> > > <name>flexfour test</name> > > <properties> > <flex.version>4.1.0.16248</flex.version> > <flexmojos.version>4.0-RC1</flexmojos.version> > </properties> > > <build> > <sourceDirectory>src/main/flex</sourceDirectory> > <testSourceDirectory>src/test/flex</testSourceDirectory> > <plugins> > <plugin> > <groupId>org.sonatype.flexmojos</groupId> > <artifactId>flexmojos-maven-plugin</artifactId> > <version>${flexmojos.version}</version> > <extensions>true</extensions> > <configuration> > <sourceFile>Main.mxml</sourceFile> > </configuration> > <dependencies> > <dependency> > <groupId>com.adobe.flex</groupId> > <artifactId>compiler</artifactId> > <version>${flex.version}</version> > <type>pom</type> > </dependency> > </dependencies> > </plugin> > </plugins> > </build> > > <dependencies> > <dependency> > <groupId>com.adobe.flex.framework</groupId> > <artifactId>spark</artifactId> > <type>swc</type> > <scope>theme</scope> > <version>${flex.version}</version> > </dependency> > <dependency> > <groupId>com.adobe.flex.framework</groupId> > <artifactId>flex-framework</artifactId> > <version>${flex.version}</version> > <type>pom</type> > </dependency> > </dependencies> > > <repositories> > <repository> > <id>symmsm</id> > <url>http://<mylocalreposerver>:8181/nexus/content/groups/ > symmsm</url> > <releases> > <enabled>true</enabled> > <checksumPolicy>fail</checksumPolicy> > </releases> > <snapshots> > <checksumPolicy>fail</checksumPolicy> > <enabled>true</enabled> > </snapshots> > </repository> > <repository> > <id>symmrelease</id> > <url>http://<mylocalreposerver>:8181/nexus/content/ > repositories/releases/</url> > <releases> > <enabled>true</enabled> > <checksumPolicy>fail</checksumPolicy> > </releases> > <snapshots> > <checksumPolicy>fail</checksumPolicy> > <enabled>true</enabled> > </snapshots> > </repository> > <repository> > <id>symmsnapshot</id> > <url>http://<mylocalreposerver>:8181/nexus/content/ > repositories/snapshots/</url> > <releases> > <enabled>false</enabled> > <checksumPolicy>fail</checksumPolicy> > </releases> > <snapshots> > <enabled>true</enabled> > <checksumPolicy>fail</checksumPolicy> > </snapshots> > </repository> > </repositories> > <pluginRepositories> > <pluginRepository> > <id>symmsm</id> > <url>http://<mylocalreposerver>:8181/nexus/content/groups/ > symmsm</url> > <releases> > <enabled>true</enabled> > </releases> > <snapshots> > <enabled>true</enabled> > </snapshots> > </pluginRepository> > </pluginRepositories> > </project> > > I tried adding <updateSecuritySandbox>true</updateSecuritySandbox> > into the pom, but that didn't help. I have a maven.cfg file in (for > Windows 7) C:\Users\<username>\AppData\Roaming\Macromedia\Flash Player > \#Security\FlashPlayerTrust. It has a long list of paths, all ending > in "target\test-classes\TestRunner.swf" - I'm not sure why compilation > needs to deal with the flash player trust (this is happening in > compile, not test). I tried adding c:\ there. I also tried adding c:\ > as a trusted location in my flash global settings panel. I > continually get the same issue. I did notice this > patch:http://code.google.com/p/flex-mojos/issues/detail?id=154, but since my > locale is U.S. English, I don't think that would help. > > You help is much appreciated. > > Thank You, > > Michael Bushe -- 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/
