tags:

views:

99

answers:

1

I have to port an existing project to Maven, and it includes a resource called "config.xml" that is copied to the deploy directory alongside the SWF and HTML, and loaded at run-time to locate a bunch of WSDLs.

Flex Mojos has taken it upon itself to assume that my xml file is a flex-config file with instructions for the compiler, which of course promptly gives up the ghost.

The question is: How do I specify a named config file for the compiler so that Maven stops this nonsense (as well as specifying my compile-time options)?

+1  A: 
<configuration>
     <configFile>path/to/yourConfigFile.xml</configFile>
</configuration>

https://docs.sonatype.org/display/FLEXMOJOS/compile-swf-mojo.html#compile-swf-mojo.html-configFile

seanizer
Where am I supposed to put the configuration element? The docs don't help unless you're already a Maven expert :-/
Sophistifunk
After experimenting some, it seems it goes into the build/plugins/plugin element for flexmojos-maven-plugin, not in something specific to flexmojos:generate-config-swf
Sophistifunk