android - Flex Mobile Maven Build -



android - Flex Mobile Maven Build -

i'm trying find out if there way build flex mobile project using maven.

when run maven build want have apk-file , ipa-file output of build process. cool if there way run unit tests too.

what wanna have solution, tutorial or illustration of how handle that.

any suggestions?

flex mojos defacto standard building flex applications maven. knowledge not back upwards mobile builds.

if have experience ant, can write ant-based build , utilize maven antrun plugin bind execution of targets maven phases. below illustration clean, compile, test , package:

<build> <plugins> <plugin> <groupid>org.apache.maven.plugins</groupid> <artifactid>maven-antrun-plugin</artifactid> <version>1.6</version> <executions> <execution> <id>clean-project</id> <phase>clean</phase> <goals> <goal>run</goal> </goals> <configuration> <tasks> <ant antfile="${basedir}/build/build.xml"> <target name="clean"/> </ant> </tasks> </configuration> </execution> <execution> <id>create-swf</id> <phase>compile</phase> <goals> <goal>run</goal> </goals> <configuration> <tasks unless="flex.skip"> <ant antfile="${basedir}/build/build.xml"> <target name="compile"/> </ant> </tasks> </configuration> </execution> <execution> <id>flexunit-tests</id> <phase>test</phase> <goals> <goal>run</goal> </goals> <configuration> <tasks unless="maven.test.skip"> <ant antfile="${basedir}/build/build.xml"> <target name="test"/> </ant> </tasks> </configuration> </execution> <execution> <id>generate-asdoc</id> <phase>package</phase> <goals> <goal>run</goal> </goals> <configuration> <tasks unless="asdoc.skip"> <ant antfile="${basedir}/build/build.xml"> <target name="asdoc"/> </ant> </tasks> </configuration> </execution> <execution> <id>dist</id> <phase>package</phase> <goals> <goal>run</goal> </goals> <configuration> <tasks> <ant antfile="${basedir}/build/build.xml"> <target name="dist"/> </ant> </tasks> </configuration> </execution> </executions> <dependencies> <!-- since using maven-antrun 1.6 depends on ant 1.8.1 create sure version number on ant-junit matches --> <dependency> <groupid>org.apache.ant</groupid> <artifactid>ant-junit</artifactid> <version>1.8.1</version> </dependency> </dependencies> </plugin> </plugins> </build>

android ios flex maven flex-mobile

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -