Flex Application (SWF files) are usually run on web context (WAR project). So is necessary to copy SWF files (and all runtime dependencies) into the WAR during packing phase. That is exactly what copy-flex-resources goal does.
Code Block | ||
---|---|---|
| ||
<build> ... <plugins> ... <plugin> <groupId>net.flexmojos.oss</groupId> <artifactId>flexmojos-maven-plugin</artifactId> <executions> <execution> <goals> <goal>copy-flex-resources</goal> </goals> </execution> </executions> </plugin> </plugins> </build> |
Then, is necessary to add a dependency to all SWF. Like this:
Code Block | ||||
---|---|---|---|---|
| ||||
... <dependencies> <dependency> <groupId>org.sonatype</groupId> <artifactId>swf-project</artifactId> <version>1.0</version> <type>swf</type> </dependency> </dependencies> |
...