Flexmojos6.x поддерживает ANE файлы? - PullRequest
0 голосов
/ 23 апреля 2019

Я использую flexmojos 6.x для создания проекта Adobe AIR с использованием flexsdk 4.6 / airsdk 3.1 с файлами ANE, но при отладке я получаю ошибку.Я не могу найти какие-либо советы о том, как настроить ANE с помощью FM 6.x.Итак, я хочу знать, поддерживает ли fm 6.x это?

Я добавил следующее в свой pom.xml.

<dependencies>
....
  <dependency>
    <gruopId>me.toshiba.demo</groupId>
    <artifactId>graphDll</artifactId>
    <version>1.0.0</version>
    <type>ane</type>
  </dependency>
....
</dependencies>

После этого flexmojos-maven-plugin компилирует проектуспешно.Я получаю сообщение об ошибке «Не удается найти файл library.swf», и оно указывает на несуществующий каталог.Я думаю, что нужно распаковать файлы ANE, но я не могу найти никакой конфигурации об этом.

<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.bocom.cwap</groupId>
    <artifactId>mojos-application</artifactId>
    <version>1.0-SNAPSHOT</version>
    <packaging>swf</packaging>

    <name>mojos-application Flex</name>

    <build>
        <sourceDirectory>src/main/flex</sourceDirectory>
        <testSourceDirectory>src/test/flex</testSourceDirectory>
        <plugins>
            <plugin>
                <groupId>net.flexmojos.oss</groupId>
                <artifactId>flexmojos-maven-plugin</artifactId>
                <version>6.0.0</version>
                <extensions>true</extensions>
                <configuration>
                    <debug>true</debug>
                    <sourceFile>MyApp.mxml</sourceFile>
                    <descriptorTemplate>src/main/flex/MyApp-app.xml</descriptorTemplate>
                </configuration>
            </plugin>
        </plugins>
    </build>

    <dependencies>
        <dependency>
            <groupId>com.adobe.flex.framework.air</groupId>
            <artifactId>air-framework</artifactId>
            <type>pom</type>
        </dependency>

        <dependency>
            <gruopId>me.toshiba.demo</groupId>
            <artifactId>graphDll</artifactId>
            <version>1.0.0</version>
            <type>ane</type>
        </dependency>

        <dependency>
            <groupId>org.flexunit</groupId>
            <artifactId>flexunit</artifactId>
            <version>4.1.0</version>
            <classifier>flex4</classifier>
            <type>swc</type>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>com.adobe.flex</groupId>
                <artifactId>framework</artifactId>
                <version>4.6.0.23201</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>
</project>
...