AIRアプリケーションであるMavenモジュールがあります。FlexMojosプラグイン(バージョン4.2-ベータ版)を使用しています。
編集:さらに調査したところ、問題はテストTestRunner.xmlに使用された記述子にAIR 2.6名前空間があるのに対し、私のadlバージョンは3.6であることが明らかになりました。したがって、このバージョンまたは記述子全体を制御する方法が必要です。
テスト目標を実行すると、常にこのエラーが発生します。
[ERROR] Failed to execute goal org.sonatype.flexmojos:flexmojos-maven-plugin:4.2-beta:test-run (default-test-run) on project mobile-app: Unexpected return code 9
これが私のビルド構成です(flex.sdk.version=4.5.1.21328)
<plugin>
    <groupId>org.sonatype.flexmojos</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.sdk.version}</version>
            <type>pom</type>
        </dependency>
        <dependency>
            <groupId>com.adobe.flex.compiler</groupId>
            <artifactId>adt</artifactId>
            <version>${flex.sdk.version}</version>
            <scope>compile</scope>
        </dependency>
    </dependencies>
</plugin>
を使用mvn test -Xすると、ADLが呼び出されていることがわかります。
[DEBUG] [LAUNCHER] exec: [adl] - /XXX/mobile-app/target/test-classes/TestRunner.xml
私の知る限り、adlのエラーコード9は次のことを意味しますThe main application content file is not a valid SWF or HTML file.。
私は何が欠けていますか?どんな助けでも大歓迎です!