【问题标题】:Running AIR application tests with Maven/FlexMojos 4.2 beta使用 Maven/FlexMojos 4.2 beta 运行 AIR 应用程序测试
【发布时间】:2013-02-28 20:41:08
【问题描述】:

我有 Maven 模块,它是一个 AIR 应用程序。我使用 FlexMojos 插件(4.2-beta 版)。

编辑进一步调查显示问题在于用于测试的描述符 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.

我错过了什么?任何帮助表示赞赏!

【问题讨论】:

标签: apache-flex air argument-dependent-lookup flexmojos flex-mojos


【解决方案1】:

不幸的是,我发现控制 Adob​​e AIR 版本的最佳方法是将 FlexMojos 升级到 5.1-beta。此版本接受参数flex.airVersion,然后将其写入描述符中。

【讨论】:

    猜你喜欢
    • 2016-03-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多