Error copying flex resources

9 views
Skip to first unread message

leif

unread,
Jun 5, 2008, 9:37:19 AM6/5/08
to Israfil Mojo User Discussions
I get an error in the maven-flex2-plugin version 1.3 when trying to
build my WAR project which has a dependency of a SWF project. The
error message makes no sense as it seems to complain about something
missing in the plugin, but I can not see anything missing when looking
at the JAR for the plugin.

[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Internal error in the plugin manager executing goal
'net.israfil.mojo:maven-flex2-plugin:1.3:copy-flex-applications':
Unable to find the mojo 'net.israfil.mojo:maven-flex2-plugin:1.3:copy-
flex-applications' in the plugin 'net.israfil.mojo:maven-flex2-plugin'
org.apache.maven.plugin.dependency.utils.filters.ArtifactsFilter
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch

POM for WAR project:
<plugins>
<plugin>
<groupId>net.israfil.mojo</groupId>
<artifactId>maven-flex2-plugin</artifactId>
<executions>
<execution>
<id>copy-flex</id>
<phase>process-classes</phase>
<goals>
<goal>copy-flex-applications</goal>
</goals>
<configuration>
<modules>
<swfModule>
<groupId>com.acme</groupId>
<artifactId>flexProject</artifactId>
<targetPath>${project.build.directory}/flex-resources/swf</
targetPath>
</swfModule>
</modules>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<webResources>
<resource>
<!-- this is relative to the pom.xml directory -->
<directory>${project.build.directory}/flex-resources</
directory>
</resource>
</webResources>
</configuration>
</plugin>
</plugins>

leif

unread,
Jun 9, 2008, 9:58:20 AM6/9/08
to Israfil Mojo User Discussions
Removing the Mojo from my local Maven repository and forcing it to
retrieve the plug-in once more seemed to do the trick. I guess Maven
had a bit of a bad day when I downloaded the plug-in last time....
Reply all
Reply to author
Forward
0 new messages