【发布时间】:2018-04-06 05:58:22
【问题描述】:
我们所知道的:
当我使用 Flex Builder(即没有 maven 构建)构建 flex 项目时,我可以使用 'Project Properties > Flex Compiler > Additional Compiler Arguments' 传递一些 附加参数,例如引用 services-config.xml 文件:
在上面的屏幕截图中,我传递了这些附加参数,这些参数使我的 SWF 文件能够与相应的服务进行通信: -services "C:\MyProject\WebRoot\WEB-INF\flex\services-config.xml" -locale zh_CN
我们在做什么:
我们的任务是将这个 flex 项目转换为 maven 项目。我已经使用 flexmojos-maven-plugin 3.8 做到了。 (我不能使用任何最新版本,长篇大论。)它编译成功并生成 SWF 文件。但是,我不知道如何在我的 flexmojos-maven-plugin 的配置中传递上述附加参数。
这是我在 pom.xml 中的工作配置:
<plugin>
<groupId>org.sonatype.flexmojos</groupId>
<artifactId>flexmojos-maven-plugin</artifactId>
<version>3.8</version>
<extensions>true</extensions>
<configuration>
<sourceFile>Abc.mxml</sourceFile>
<debug>true</debug>
<storepass></storepass>
<output>${basedir}/target/Abc.swf</output>
</configuration>
<dependencies>
<dependency>
<groupId>com.adobe.flex</groupId>
<artifactId>compiler</artifactId>
<version>3.2.0.3958</version>
<type>pom</type>
</dependency>
</dependencies>
</plugin>
问题:
谁能建议我如何通过我上面提到的附加 pom.xml 中插件配置中的编译器参数?否则,将生成 SWF 文件,但无法与服务通信。
【问题讨论】:
标签: maven apache-flex flexmojos