开发者

Specifying a flex-config.xml with Maven / Flex Mojos

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 开发者_StackOverflow中文版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)?


<configuration>
     <configFile>path/to/yourConfigFile.xml</configFile>
</configuration>

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


Sorry for the archeology. If you want to hide only some warnings, you can add the following in your pom:

<configuration>
    <!-- Maven is more strict than Flash Builder, so I'm hiding some warnings -->
    <compilerWarnings>
        <warn-no-constructor>false</warn-no-constructor>
    </compilerWarnings>
</configuration>

From this documentation:

compilerWarnings
  A list of warnings that should be enabled/disabled
  Equivalent to -compiler.show-actionscript-warnings,
  -compiler.show-binding-warnings,
  -compiler.show-shadowed-device-font-warnings,
  -compiler.show-unused-type-selector-warnings and -compiler.warn-*
  Usage:
  <compilerWarnings>
    <show-actionscript-warnings>true</show-actionscript-warnings>
    <warn-bad-nan-comparison>false</warn-bad-nan-comparison>
  </compilerWarnings>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜