Maven を使用してフレックス モバイル プロジェクトをビルドする方法があるかどうかを調べようとしています。
Maven ビルドを実行するときに、ビルド プロセスの出力として apk ファイルと ipa ファイルが必要です。単体テストも実行する方法があれば、本当にクールです。
私が欲しいのは、解決策、チュートリアル、またはそれを処理する方法の例です。
助言がありますか?
Maven を使用してフレックス モバイル プロジェクトをビルドする方法があるかどうかを調べようとしています。
Maven ビルドを実行するときに、ビルド プロセスの出力として apk ファイルと ipa ファイルが必要です。単体テストも実行する方法があれば、本当にクールです。
私が欲しいのは、解決策、チュートリアル、またはそれを処理する方法の例です。
助言がありますか?
Flex Mojos は、Maven を使用して Flex アプリケーションを構築するためのデファクト スタンダードです。私の知る限り、現在モバイル ビルドはサポートされていません。
Ant の経験がある場合は、Ant ベースのビルドを作成し、Maven AntRun プラグインを使用してターゲットの実行を Maven フェーズにバインドできます。以下は、クリーン、コンパイル、テスト、およびパッケージに対してこれを行う例です。
<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 we are using maven-antrun 1.6 which depends on ant 1.8.1
make sure the 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>
私が知っているほとんどの人は、Flex Mojosプロジェクトを利用しています。私が理解しているように、これらは Flex 開発者向けの一連の Maven プラグインです。
私にも必要です...
私はグーグルでいくつかのことをしました...純粋なmavenソリューションについて私が見つけたものは次のとおりです..これまでのところ、このブログ投稿を参照して ください。 to-build-a-flex-mobile-app-with-maven/
ただし、有料版であり、公式リリースはありません...
多分私は純粋なAntを使います。空想的ではありませんが、より効率的です