I tried using both and pasted the error here with Alpha-3. My bad but
then same error
---------------------------------------------
[ERROR] Failed to execute goal org.sonatype.flexmojos:flexmojos-maven-
plugin:4.0-alpha-5:wrapper (default) on project dataCollection-
webUiBlazeFlex: Execution default of goal
org.sonatype.flexmojos:flexmojos-maven-plugin:4.0-alpha-5:wrapper
failed. NullPointerException -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
execute goal org.sonatype.flexmojos:flexmojos-maven-plugin:4.0-
alpha-5:wrapper (default) on project dataCollection-webUiBlazeFlex:
Execution default of goal org.sonatype.flexmojos:flexmojos-maven-
plugin:4.0-alpha-5:wrapper failed.
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:
211)
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.PluginExecutionException: Execution
default of goal org.sonatype.flexmojos:flexmojos-maven-plugin:4.0-
alpha-5:wrapper failed.
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:
116)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:
195)
... 19 more
Caused by: java.lang.NullPointerException
at
org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:
200)
at
org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:
190)
at
org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:
251)
at
org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:
233)
at
org.sonatype.flexmojos.plugin.htmlwrapper.HtmlWrapperMojo.loadProject(HtmlWrapperMojo.java:
699)
at
org.sonatype.flexmojos.plugin.htmlwrapper.HtmlWrapperMojo.loadExternalParams(HtmlWrapperMojo.java:
379)
at
org.sonatype.flexmojos.plugin.htmlwrapper.HtmlWrapperMojo.execute(HtmlWrapperMojo.java:
313)
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:
107)
... 20 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/PluginExecutionException
---------------------------------------------
And now I have upgraded maven to version 3.0 which I guess was
released today. Even that doesn't work. Is this a Maven issue or
Flexmojos issue?
On Oct 8, 11:23 am, Bryan Turner <[email protected]> wrote:
> That error has 4.0-alpha-3 in the stack trace. Are you sure you got the
> version updated correctly?
>
> On Fri, Oct 8, 2010 at 8:05 AM, harish.dhina <[email protected]> wrote:
> > Did not want to start a new thread for this. I tried to use the
> > alpha-5 version. But now getting this error:
>
> > ------------------------------------------
> > [ERROR] Failed to execute goal org.sonatype.flexmojos:flexmojos-maven-
> > plugin:4.0-alpha-3:copy-flex-resources (default) on project
> > dataCollection-webUiBlazeFlex: Execution default of goal
> > org.sonatype.flexmojos:flexmojos-maven-plugin:4.0-alpha-3:copy-flex-
> > resources failed. NullPointerException -> [Help 1]
> > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
> > execute goal org.sonatype.flexmojos:flexmojos-maven-plugin:4.0-
> > alpha-3:copy-flex-resources (default) on project dataCollection-
> > webUiBlazeFlex: Execution default of goal
> > org.sonatype.flexmojos:flexmojos-maven-plugin:4.0-alpha-3:copy-flex-
> > resources failed.
> > at
> > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:
> > 161)
> > at
> > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:
> > 88)
> > at
> > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:
> > 80)
> > at
>
> > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:
> > 87)
> > 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:315)
> > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
> > 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.PluginExecutionException: Execution
> > default of goal org.sonatype.flexmojos:flexmojos-maven-plugin:4.0-
> > alpha-3:copy-flex-resources failed.
> > at
>
> > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:
> > 116)
> > at
> > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:
> > 145)
> > ... 19 more
> > Caused by: java.lang.NullPointerException
> > at
>
> > org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:
> > 185)
> > at
>
> > org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:
> > 175)
> > at
>
> > org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:
> > 237)
> > at
>
> > org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:
> > 219)
> > at
> > org.sonatype.flexmojos.plugin.war.CopyMojo.getProject(CopyMojo.java:
> > 313)
> > at
>
> > org.sonatype.flexmojos.plugin.war.CopyMojo.getDestinationFile(CopyMojo.java:
> > 340)
> > at org.sonatype.flexmojos.plugin.war.CopyMojo.execute(CopyMojo.java:
> > 147)
> > at
>
> > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:
> > 107)
> > ... 20 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/PluginExecutionExcep...
> > ------------------------------------------
>
> > I'm using maven 3.0 beta 3. I tried the same with Alpha-3 as well. If
> > I don't provde any version it takes pre-alpha as it's version and
> > builds successfully. But then I have the issue with the SWF name as
> > the OP. Am I missing anything?
>
> > Thanks
>
> > Harish
>
> > On Oct 8, 9:16 am, "harish.dhina" <[email protected]> wrote:
> > > I have the same exact problem. What version did you use to resolve
> > > it?
>
> > > On Oct 7, 6:47 pm, Doug Daniels <[email protected]> wrote:
>
> > > > Looks like the original issue copying the SWF with the proper names was
> > only
> > > > with the 4.0-alpha-3.
>
> > > > The latest flexmojos works fine:
>
> > > > public File getDestinationFile( Artifact artifact )
> > > > throws MojoExecutionException
> > > > {
> > > > boolean isModule = !StringUtils.isEmpty(
> > artifact.getClassifier() );
> > > > MavenProject pomProject = getProject( artifact );
>
> > > > String fileName;
> > > > if ( isModule )
> > > > {
> > > > if ( !stripModuleArtifactInfo )
> > > > {
>
> > > > fileName =
> > > > artifact.getArtifactId() + "-" +
> > artifact.getVersion() +
> > > > artifact.getClassifier() + "."
> > > > + artifact.getType();
> > > > }
> > > > else
> > > > {
>
> > > > fileName = artifact.getClassifier() + "." +
> > > > artifact.getType();
> > > > }
> > > > }
>
> > > > On Thu, Oct 7, 2010 at 3:06 PM, Marvin Froeder <[email protected]>
> > wrote:
> > > > > Flexmojos no longer depends on 3.0-RC2....
>
> > > > > VELO
>
> > > > > On Thu, Oct 7, 2010 at 10:58 PM, Doug Daniels <
> > [email protected]>wrote:
>
> > > > >> I just cloned the git repository to ensure I can properly submit a
> > patch
> > > > >> to the latest development version.
>
> > > > >> > git clonehttp://github.com/Flexmojos/flexmojos.gitflexmojos
>
> > > > >> I still am running into the maven-artifact 3.0-RC2 issue.
>
> > > > >> I'm using maven 3.0-beta-3.
>
> > > > >> C:\code\flexmojos_4.x>mvn --version
> > > > >> Apache Maven 3.0-beta-3 (r990787; 2010-08-30 07:44:03-0500)
> > > > >> Java version: 1.6.0_20
> > > > >> Java home: C:\Program Files (x86)\Java\jdk1.6.0_20\jre
> > > > >> Default locale: en_US, platform encoding: Cp1252
> > > > >> OS name: "windows 7" version: "6.1" arch: "x86" Family: "windows"
> > > > >> C:\code\flexmojos_4.x>
>
> > > > >> If I explicitly change the pom.xml to have a version for the maven
> > > > >> artifacts it seems to get further (I'll have to go through and
> > change all
> > > > >> the maven dependencies). How do you have your development
> > environment setup
> > > > >> to use Maven 3 but not run into these issues, is there something
> > else I can
> > > > >> do?
>
> > > > >> <dependency>
> > > > >> <groupId>org.apache.maven</groupId>
> > > > >> <artifactId>maven-artifact</artifactId>
> > > > >> <version>3.0-beta-3</version>
> > > > >> </dependency
>
> > > > >> ~ doug daniels
>
> > > > >> On Thu, Oct 7, 2010 at 2:53 PM, Marvin Froeder <[email protected]>
> > wrote:
>
> > > > >>> Flexmojos was moved to github a few days ago...
> > > > >>>http://github.com/Flexmojos/flexmojos
>
> > > > >>> I didn't disable the SVN yet, but will do eventually.
>
> > > > >>> On Thu, Oct 7, 2010 at 10:43 PM, Doug Daniels <
> > [email protected]
> > > > >>> > wrote:
>
> > > > >>>> I'll dig into the issue and submit a patch if I figure it out.
>
> > > > >>>> I'm having some trouble building the Flexmojos 4.x branch.
>
> > > > >>>> I've checked out:
> > > > >>>> svn cohttp://
> > svn.sonatype.org/flexmojos/branches/flexmojos-4.xflexmojos-4.x
>
> > > > >>>> I changed my ~/settings.xml to include the Sonatype repositories
> > based
> > > > >>>> on the instructions on the wiki:
>
> >https://docs.sonatype.org/display/FLEXMOJOS/Building+Flexmojos+from+s...
>
> > > > >>>> When I run a mvn install it can't locate maven-artifact 3.0-RC2
> > (what
> > > > >>>> repository has that I've tried google around for it):
>
> > > > >>>> [INFO]
>
> > ------------------------------------------------------------------------
> > > > >>>> [INFO] Building Flexmojos Common Matcher 4.0-SNAPSHOT
> > > > >>>> [INFO]
>
> > ------------------------------------------------------------------------
> > > > >>>> [WARNING] The POM for org.apache.maven:maven-artifact:jar:3.0-RC2
> > is
> > > > >>>> missing, no dependency information available
> > > > >>>> [INFO]
>
> > ------------------------------------------------------------------------
> > > > >>>> [INFO] Reactor Summary:
> > > > >>>> [INFO]
> > > > >>>> [INFO] Flexmojos Parent .................................. SUCCESS
> > > > >>>> [0.477s]
> > > > >>>> [INFO] Flexmojos util .................................... SUCCESS
> > > > >>>> [2.245s]
> > > > >>>> [INFO] Flexmojos Common Matcher .......................... FAILURE
> > > > >>>> [0.013s]
> > > > >>>> [INFO] Flexmojos Sandbox ................................. SKIPPED
> > > > >>>> [INFO] Flexmojos Generator ............................... SKIPPED
> > > > >>>> [INFO] Flexmojos Generator api ........................... SKIPPED
> > > > >>>> [INFO] Flexmojos Generator Plugin ........................ SKIPPED
> > > > >>>> [INFO] Flexmojos Generator - Internal Threadlocal generator
> > SKIPPED
> > > > >>>> [INFO] Flexmojos ThreadLocalToolkit wrapper .............. SKIPPED
> > > > >>>> [INFO] Flexmojos Generator - Internal ifaces generator ... SKIPPED
> > > > >>>> [INFO] Flexmojos Flex compiler ........................... SKIPPED
> > > > >>>> [INFO] Flexmojos Flex3
>
> ...
>
> 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/