it seems flexmojos failed to find you entities.jar .... also I would
suggest using scope provided....

On Jun 15, 6:30 pm, Clement Pang <[email protected]> wrote:
> Thanks for the help.
>
>     <build>
>         <sourceDirectory>src/main/flex</sourceDirectory>
>         <plugins>
>             <plugin>
>                 <groupId>org.sonatype.flexmojos</groupId>
>                 <artifactId>flexmojos-maven-plugin</artifactId>
>                 <version>4.0-SNAPSHOT</version>
>                 <dependencies>
>                     <dependency>
>                         <groupId>com.adobe.flex</groupId>
>                         <artifactId>compiler</artifactId>
>                         <version>${flex.version}</version>
>                         <type>pom</type>
>                     </dependency>
>                 </dependencies>
>                 <extensions>true</extensions>
>                 <executions>
>                     <execution>
>                         <goals>
>                             <goal>generate</goal>
>                             <goal>optimize-swf</goal>
>                         </goals>
>                         <configuration>
>                             <includeJavaClasses>
>                                 <includeClass>*</includeClass>
>                             </includeJavaClasses>
>                             <beanTemplate>
>                                 <template>${basedir}/src/main/template/
> beanBase.gsp</template>
>                                 <template>${basedir}/src/main/template/
> bean.gsp</template>
>                             </beanTemplate>
>                         </configuration>
>                     </execution>
>                 </executions>
>             </plugin>
>         </plugins>
>     </build>
>
>     <dependencies>
>         <dependency>
>             <groupId>${project.groupId}</groupId>
>             <artifactId>entities</artifactId>
>             <version>${project.version}</version>
>             <scope>compile</scope>
>         </dependency>
>
>         <dependency>
>             <groupId>com.adobe.flex.framework</groupId>
>             <artifactId>flex-framework</artifactId>
>             <version>${flex.version}</version>
>             <type>pom</type>
>         </dependency>
>     </dependencies>
>
> On Jun 14, 3:30 pm, Alexandre Reis <[email protected]> wrote:
>
> > Cold you please post your POM fileto assist in debugging the issue?
>
> > Thanks!
>
> > Alexandre M. Reishttp://alexmreis.com
>
> > On Mon, Jun 14, 2010 at 10:58 PM, Clement Pang <[email protected]> wrote:
> > > (running maven 3.0-snapshot w/ flexmojos 4.0-snapshot)
>
> > > [ERROR] Failed to execute goal org.sonatype.flexmojos:flexmojos-maven-
> > > plugin:4.0-SNAPSHOT:generate (default) on project client-shared:
> > > Execution default of goal org.sonatype.flexmojos:flexmojos-maven-
> > > plugin:4.0-SNAPSHOT:generate failed. NullPointerException -> [Help 1]
> > > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
> > > execute goal org.sonatype.flexmojos:flexmojos-maven-plugin:4.0-
> > > SNAPSHOT:generate (default) on project client-shared: Execution
> > > default of goal org.sonatype.flexmojos:flexmojos-maven-plugin:4.0-
> > > SNAPSHOT:generate failed.
> > >        at
> > > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:
> > > 149)
> > >        at
> > > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:
> > > 77)
> > >        at
> > > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:
> > > 69)
> > >        at
> > > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(Lif
> > >  ecycleModuleBuilder.java:
> > > 82)
> > >        at
> > > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(Lif
> > >  ecycleModuleBuilder.java:
> > > 54)
> > >        at
> > > org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(Li
> > >  fecycleStarter.java:
> > > 173)
> > >        at
> > > org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStart
> > >  er.java:
> > > 151)
> > >        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:248)
> > >        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:97)
> > >        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:436)
> > >        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:161)
> > >        at org.apache.maven.cli.MavenCli.main(MavenCli.java:125)
> > >        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > >        at
> > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
> > > 39)
> > >        at
> > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
> > >  l.java:
> > > 25)
> > >        at java.lang.reflect.Method.invoke(Method.java:597)
> > >        at
> > > org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.j
> > >  ava:
> > > 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.PluginExecutionException: Execution
> > > default of goal org.sonatype.flexmojos:flexmojos-maven-plugin:4.0-
> > > SNAPSHOT:generate failed.
> > >        at
> > > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildP
> > >  luginManager.java:
> > > 114)
> > >        at
> > > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:
> > > 133)
> > >        ... 19 more
> > > Caused by: java.lang.NullPointerException
> > >        at
> > > org.sonatype.flexmojos.generator.SimpleGeneratorMojo.getDirectDependencies(
> > >  SimpleGeneratorMojo.java:
> > > 402)
> > >        at
> > > org.sonatype.flexmojos.generator.SimpleGeneratorMojo.getFilesToGenerator(Si
> > >  mpleGeneratorMojo.java:
> > > 260)
> > >        at
> > > org.sonatype.flexmojos.generator.SimpleGeneratorMojo.execute(SimpleGenerato
> > >  rMojo.java:
> > > 169)
> > >        at
> > > org.sonatype.flexmojos.plugin.generator.GeneratorMojo.execute(GeneratorMojo
> > >  .java:
> > > 41)
> > >        at
> > > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildP
> > >  luginManager.java:
> > > 105)
> > >        ... 20 more
>
> > > Any idea why this is happening? Uncommenting the java jar dependency
> > > makes the error go away (but obviously make generate do nothing).
>
> > > --
> > > 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/

Reply via email to