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/PluginExecutionException > ------------------------------------------ > > 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 compatibility layer ............... SKIPPED > > > >>>> [INFO] Flexmojos Generator - Internal Flex2 generator .... SKIPPED > > > >>>> [INFO] Flexmojos Flex2 compatibility layer ............... SKIPPED > > > >>>> [INFO] Flexmojos Test Coverage reported .................. SKIPPED > > > >>>> [INFO] Flexmojos Generator - graniteds 1.1.0 ............. SKIPPED > > > >>>> [INFO] Flexmojos Generator - graniteds 2.0.0 ............. SKIPPED > > > >>>> [INFO] Flexmojos Generator - graniteds 2.1.0 ............. SKIPPED > > > >>>> [INFO] Flexmojos Generator - Constraints ................. SKIPPED > > > >>>> [INFO] Flexmojos Testing ................................. SKIPPED > > > >>>> [INFO] Flexmojos Tester api .............................. SKIPPED > > > >>>> [INFO] Flexmojos Maven Plugin ............................ SKIPPED > > > >>>> [INFO] Flexmojos Super poms .............................. SKIPPED > > > >>>> [INFO] Flexmojos Aggregator .............................. SKIPPED > > > >>>> [INFO] > > > >>>> > ------------------------------------------------------------------------ > > > >>>> [INFO] BUILD FAILURE > > > >>>> [INFO] > > > >>>> > ------------------------------------------------------------------------ > > > >>>> [INFO] Total time: 3.105s > > > >>>> [INFO] Finished at: Thu Oct 07 14:40:17 CDT 2010 > > > >>>> [INFO] Final Memory: 13M/32M > > > >>>> [INFO] > > > >>>> > ------------------------------------------------------------------------ > > > >>>> [ERROR] Failed to execute goal on project > flexmojos-common-matchers: > > > >>>> Could not resolve dependencies for project > org.sonatype.flexmojos:flexm > > > >>>> ojos-common-matchers:jar:4.0-SNAPSHOT: The following artifacts > could not > > > >>>> be resolved: org.apache.maven:maven-artifact:jar:3.0-RC2: Failure > t > > > >>>> o find org.apache.maven:maven-artifact:jar:3.0-RC2 in > > > >>>>http://repository.sonatype.org/content/groups/flexgroup/wascachedin > > > >>>> the local repos > > > >>>> itory. Resolution will not be reattempted until the update > interval of > > > >>>> flex-mojos-repository has elapsed or updates are forced. -> [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/DependencyResolution... > > > >>>> [ERROR] > > > >>>> [ERROR] After correcting the problems, you can resume the build > with the > > > >>>> command > > > >>>> [ERROR] mvn <goals> -rf :flexmojos-common-matchers > > > > > >>>> ~ doug daniels > > > > > >>>> On Thu, Oct 7, 2010 at 12:58 PM, Marvin Froeder < > [email protected]>wrote: > > > > > >>>>> Yeah, I did saw that yesterday, but I don't have time to fix that > any > > > >>>>> time soon. > > > > > >>>>> If you fix it lemme know. > > > > > >>>>> VELO > > > > > >>>>> On Thu, Oct 7, 2010 at 8:57 PM, Doug Daniels < > > > >>>>> [email protected]> wrote: > > > > > >>>>>> I opened a JIRA issue I'm having a problem using the copy-flex- > > > >>>>>> resources: > > > >>>>>>https://issues.sonatype.org/browse/FLEXMOJOS-353 > > > > > >>>>>> I'm trying to have it copy a multiple SWF dependencies (from a > > > >>>>>> multimodule SWF pom.xml build), and strip off all the extra > maven > > > >>>>>> versioning information (we try to have our dev environment match > > > >>>>>> production but the forced maven naming convention breaks that.) > > > > > >>>>>> For example I have 2 swf's included as dependencies to a war > project: > > > >>>>>> <dependency> > > > >>>>>> <groupId>${project.groupId}</groupId> > > > >>>>>> <version>${project.version}</version> > > > >>>>>> <artifactId>test-client</artifactId> > > > >>>>>> <type>swf</type> > > > >>>>>> <classifier>main</classifier> > > > >>>>>> </dependency> > > > >>>>>> <dependency> > > > >>>>>> <groupId>${project.groupId}</groupId> > > > >>>>>> <version>${project.version}</version> > > > >>>>>> <artifactId>test-client</artifactId> > > > >>>>>> <type>swf</type> > > > >>>>>> <classifier>lobby</classifier> > > > >>>>>> </dependency> > > > > > >>>>>> I configure my plugin as such: > > > >>>>>> <plugin> > > > >>>>>> <groupId>org.sonatype.flexmojos</groupId> > > > >>>>>> <artifactId>flexmojos-maven-plugin</artifactId> > > > >>>>>> <version>${flexmojos.version}</version> > > > >>>>>> <executions> > > > >>>>>> <execution> > > > >>>>>> <goals> > > > >>>>>> <goal>copy-flex-resources</goal> <!-- Copy of Flex resource into > WAR > > > >>>>>> -- > > > > > >>>>>> </goals> > > > >>>>>> </execution> > > > >>>>>> </executions> > > > >>>>>> <configuration> > > > >>>>>> <useFinalName>true</useFinalName> > > > >>>>>> <stripVersion>true</stripVersion> > > > >>>>>> <stripModuleArtifactInfo>true</stripModuleArtifactInfo> > > > >>>>>> </configuration> > > > > > >>>>>> It results in: > > > >>>>>> test-client-main.swf > > > >>>>>> test-client-lobby.swf > > > > > >>>>>> I'd expect: > > > >>>>>> main.swf > > > >>>>>> lobby.swf. > > > > > >>>>>> -- > > > >>>>>> You received this message because you are subscribed to the > Google > > > >>>>>> Groups "Flex Mojos" group. > > > >>>>>> To > > > > ... > > > > 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]<flex-mojos%[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/
