Flexmojos has now native support to AIR applications:
httphttps://svn.sonatype.orggithub.com/velo/flexmojos/trunktree/flexmojos-4.x/flexmojos-testing/flexmojos-test-harness/projects/concept/simple-air/
Flexmojos native support for Flex 4 AIR applications:
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<?xml version="1.0" encoding="UTF-8"?> <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>info.rvin.itest</groupId> <artifactId>simple-air</artifactId> <version>1.0-SNAPSHOT</version> <packaging>pom</packaging> <modules> <module>air</module> <module>swf</module> <module>swc</module> </modules> <build> <sourceDirectory>src/main/flex</sourceDirectory> <plugins> <plugin> <groupId>org<groupId>net.sonatypeflexmojos.flexmojos<oss</groupId> <artifactId>flexmojos-maven-plugin</artifactId> <version>${flexmojos.version}</version> <extensions>true</extensions> <dependencies> <dependency> <groupId>com.adobe.flex</groupId> <artifactId>compiler</artifactId> <version>${flex.version}</version> <type>pom</type> </dependency> <dependency> <groupId>com.adobe.flex.compiler</groupId> <artifactId>adt</artifactId> <version>${flex.version}</version> <scope>compile</scope> </dependency> </dependencies> </plugin> </plugins> </build> <dependencies> <!-- Air SDK dependencies --> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>air-framework</artifactId> <version>${flex.version}</version> <type>pom</type> </dependency> </dependencies> </project> |
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<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.mcgraphix.xd</groupId> <artifactId>my-app</artifactId> <version>1.0-SNAPSHOT</version> <name>my-app Flex</name> <properties> <!-- the application name which must match the main mxml file and application descriptor file names --> <application.name>MyApp</application.name> <flex.framework.version>4.0.0.14159</flex.framework.version> <keystore.file>${basedir}/cert.p12</keystore.file> <keystore.password>secret</keystore.password> </properties> <packaging>swf</packaging> <build> <sourceDirectory>src/main/flex</sourceDirectory> <plugins> <plugin> <groupId>org<groupId>net.sonatypeflexmojos.flexmojos<oss</groupId> <artifactId>flexmojos-maven-plugin</artifactId> <version>3.7-SNAPSHOT<<version>${flexmojos.version}</version> <extensions>true</extensions> <dependencies> <dependency> <groupId>com.adobe.flex</groupId> <artifactId>compiler</artifactId> <version>${flex.framework.version}</version> <type>pom</type> </dependency> <dependency> <groupId>com.adobe.flex.compiler</groupId> <artifactId>adt</artifactId> <version>${flex.framework.version}</version> </dependency> </dependencies> <configuration> <!-- set this to true to allow the plugin to find the special Flex Builder/Flash Builder string in the application descriptor which is normally in site the <content> tag. If you set this to false or omit it entirely, the plugin will expect there to be an ${output} token in that tag. Placing that token in the application descriptor will prevent the Export Release Build function in Flex Builder/Flash Builder for working --> <flexBuilderCompatibility>true</flexBuilderCompatibility> <sourceFile>${application.name}.mxml</sourceFile> <descriptorTemplate>${basedir}/src/main/flex${application.name}-app.xml</descriptorTemplate> <keystore>${keystore.file}</keystore> <storepass>${keystore.password}</storepass> <!--optionally include files in the AIR package --> <includeFileSets> <fileSet> <directory>src/main/resources/embedded</directory> <includes> <include>*.*</include> </includes> </fileSet> </includeFileSets> </configuration> <executions> <execution> <goals> <goal>sign-air</goal> </goals> </execution> </executions> </plugin> </plugins> </build> <dependencies> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>air-framework</artifactId> <version>${flex.framework.version}</version> <type>pom</type> </dependency> </dependencies> </project> |
...