我必须将一个现有的项目移植到Maven.它包含一个名为"config.xml“的资源,该资源与SWF和HTML一起被复制到部署目录中,并在运行时加载以定位一堆WSDL。
Flex Mojos自己假定我的xml文件是一个flex-config文件,其中包含编译器的指令,当然编译器很快就放弃了。
问题是:我如何为编译器指定一个指定的配置文件,以便Maven停止这种胡说八道(以及指定我的编译时选项)?
发布于 2010-05-20 00:25:49
<configuration>
<configFile>path/to/yourConfigFile.xml</configFile>
</configuration>https://docs.sonatype.org/display/FLEXMOJOS/compile-swf-mojo.html#compile-swf-mojo.html-configFile
发布于 2014-09-04 18:37:36
我为考古感到抱歉。如果您只想隐藏一些警告,您可以在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>来自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>https://stackoverflow.com/questions/2862627
复制相似问题