我正在使用flexmojos 6.x使用带有ANE文件的flexsdk 4.6 / airsdk 3.1构建Adobe AIR项目,但是在调试时出现错误。我找不到有关如何使用fm 6.x配置ANE的任何提示。所以我想知道fm 6.x是否支持它?
我已将以下内容添加到我的pom.xml中。
<dependencies>
....
<dependency>
<gruopId>me.toshiba.demo</groupId>
<artifactId>graphDll</artifactId>
<version>1.0.0</version>
<type>ane</type>
</dependency>
....
</dependencies>
之后,flexmojos-maven-plugin成功编译项目。我收到一条错误消息:“找不到library.swf文件”,它指向一个不存在的目录。 我认为它需要解压缩ANE文件,但是我也找不到关于它的任何配置。
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.bocom.cwap</groupId>
<artifactId>mojos-application</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>swf</packaging>
<name>mojos-application Flex</name>
<build>
<sourceDirectory>src/main/flex</sourceDirectory>
<testSourceDirectory>src/test/flex</testSourceDirectory>
<plugins>
<plugin>
<groupId>net.flexmojos.oss</groupId>
<artifactId>flexmojos-maven-plugin</artifactId>
<version>6.0.0</version>
<extensions>true</extensions>
<configuration>
<debug>true</debug>
<sourceFile>MyApp.mxml</sourceFile>
<descriptorTemplate>src/main/flex/MyApp-app.xml</descriptorTemplate>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>com.adobe.flex.framework.air</groupId>
<artifactId>air-framework</artifactId>
<type>pom</type>
</dependency>
<dependency>
<gruopId>me.toshiba.demo</groupId>
<artifactId>graphDll</artifactId>
<version>1.0.0</version>
<type>ane</type>
</dependency>
<dependency>
<groupId>org.flexunit</groupId>
<artifactId>flexunit</artifactId>
<version>4.1.0</version>
<classifier>flex4</classifier>
<type>swc</type>
<scope>test</scope>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.adobe.flex</groupId>
<artifactId>framework</artifactId>
<version>4.6.0.23201</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
</project>