0

Adobe SDK 4.6 で問題なくビルドできる Mavenized フレックス プロジェクトがあります。今、私はApacheの最近のSDKでコンパイルしようとしています。SDK を Mavenized し、依存関係を local repo にコピーしました。私がmavenizedしたApacheのバージョンは 4.13.0.20140701 です。

私のポンは以下の通りです:

<properties>
        <flexmojos.version>7.0.1</flexmojos.version>
        <flex.version>4.13.0.20140701</flex.version>
        <flash.version>11.1</flash.version>
    </properties>

    <build>
        <sourceDirectory>src/main/flex</sourceDirectory>

        <plugins>
            <plugin>
                <groupId>net.flexmojos.oss</groupId>
                <artifactId>flexmojos-maven-plugin</artifactId>
                <version>${flexmojos.version}</version>
                <extensions>true</extensions>

                <configuration>
                    <debug>true</debug>
                    <sourceFile>ComptaFlex.mxml</sourceFile>
                    <services>${basedir}/src/main/flex/services/services-config.xml</services>
                    <compilerWarnings>
                        <warn-no-constructor>false</warn-no-constructor>
                    </compilerWarnings>
                </configuration>
                <dependencies>
                    <!-- This handles a bug in maven which causes problems with flex resources -->
                    <dependency>
                        <groupId>net.flexmojos.oss</groupId>
                        <artifactId>flexmojos-threadlocaltoolkit-wrapper</artifactId>
                        <version>${flexmojos.version}</version>
                    </dependency>
                    <!-- Without this FM will use the compiler configured in its master 
                        pom, which will result in version conflicts -->
                    <dependency>
                        <groupId>org.apache.flex</groupId>
                        <artifactId>compiler</artifactId>
                        <version>4.13.0.20140701</version>
                        <type>pom</type>
                    </dependency>
                </dependencies>
            </plugin>
            <plugin>

次のようにmavenコンパイルエラーが発生しました:

xmojos.oss:flexmojos-flex-compiler:jar:7.0.1 -> net.flexmojos.oss:flexmojos-generator-internal-compiler-iface:jar:7.0.1 -> org.apache.flex:compiler:pom:4.12.1.20140427: Failed to read artifact descriptor for org.apache.flex:compiler:pom:4.12.1.20140427: Could not transfer artifact org.apache.

flex mojo は常にデフォルトの apache バージョンを使用し、提供されたものを無視しているようです。指定したバージョンで flexmojo ビルドを強制するにはどうすればよいですか。

4

3 に答える 3

1

Flexmojos-maven-plugin バージョン 7.0.x は、FDK 4.12.1.20140427 を使用してビルドされています。この FDK は、この maven プラグインへの依存関係として宣言されています。最初に FDK 4.12.1.20140427 を maven 化し、maven リポジトリに配置する必要があります。その後、他のバージョンの FDK を Maven 化できます。

于 2014-11-08T11:20:27.230 に答える
0

厄介な回避策は、flexmojo-parent pom ファイルを変更し、手動で編集することです:

<flex.version>4.13.0.20140701</flex.version>

flexmojo開発者がより良い反応を示すまで.

于 2014-10-03T08:05:02.973 に答える