copy-flex-resources プラグインを使用して、依存する rsl を war にコピーしようとしています。ただし、次のエラーが発生します。
[エラー] プロジェクト smh で目標 org.sonatype.flexmojos:flexmojos-maven-plugin:3.8:copy-flex-resources (copy-flex-resources) を実行できませんでした: com.adobe.flex.fram textLayout:swz が見つかりませんhttps://repository.sonatype.org/content/groups/flexgroupの:4.1.0.16076 が ローカル リポジトリにキャッシュされました。sonatype-flex-repository の更新値が経過するか更新が強制されるまで、解決は再試行されません。 .......... [エラー] 次に、コマンドを使用してインストールします: [エラー] mvn install:install-file -DgroupId=com.adobe.flex.framework - DartifactId=textLayout -Dversion=4.1.0.16076 -Dpackaging=swz -Dfile=/ path/to/file
私はすでにリンク http://groups.google.com/group/flex-mojos/browse_thread/thread/6f47b2980275aaeb http://groups.google.com/group/flex-mojos/browse_thread/thread/2aa96d8d69e1ddb5 を調べましたhttps://repository.sonatype.org/content/sites/maven-sites/flexmojos/3.8/copy-flex-resources-mojo.html
https://docs.sonatype.org/pages/viewpage.action?pageId=7045277で指定されている pom のリストに従いました 。
上記の問題を解決するために、mvn install:install-file -DgroupId=com.adobe.flex.framework - DartifactId=textLayout -Dversion=4.1.0.16076 -Dpackaging=swz - Dfile=textLayout_1 を使用して、swz ファイルをローカル リポジトリにインストールしました。 1.0.604.swz (これの副作用は、リポジトリ内の既存の pom 構成を上書きすることでした)
そして、mvn compile を実行しました。次のエラーが発生しました
[エラー] プロジェクト smh で目標 org.sonatype.flexmojos:flexmojos-maven-plugin:3.8:copy-flex-resources (copy-flex-resources) を実行できませんでした: C:\Users\bharadke.m2\repository をコピーできませんでした\com\adobe\flex \framework\textLayout\4.1.0.16076\textLayout-4.1.0.16076.swz: ファイル名、ディレクトリ名、またはボリューム ラベルの構文が正しくありません -> [ヘルプ 1]
以下は私の pom.xml スニペットです 1. flex プロジェクト pom :
<build>
<sourceDirectory>src/main/flex</sourceDirectory>
<testSourceDirectory>src/test/flex</testSourceDirectory>
<plugins>
<plugin>
<groupId>org.sonatype.flexmojos</groupId>
<artifactId>flexmojos-maven-plugin</artifactId>
<version>${flex-mojos-plugin.version}</version>
<extensions>true</extensions>
<executions>
</executions>
<dependencies>
<dependency>
<groupId>com.adobe.flex</groupId>
<artifactId>compiler</artifactId>
<version>${flex.sdk.version}</version>
<type>pom</type>
</dependency>
</dependencies>
<configuration>
<policyFileUrls>
<url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</url>
<url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</url>
</policyFileUrls>
<rslUrls>
<url>http://fpdownload.adobe.com/pub/swz/flex/$
{flex.sdk.version}/{artifactId}_{version}.{extension}</url>
<url>http://fpdownload.adobe.com/pub/swz/tlf/1.1.0.604/
{artifactId}_1.1.0.604.{extension}</url>
</rslUrls>
<keepAllTypeSelectors>true</keepAllTypeSelectors>
<contextRoot>/abc</contextRoot>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<!-- Dynamically load the Adobe signed RSL framework instead of merging into SWF. -->
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>textLayout</artifactId>
<version>${flex.sdk.version}</version>
<type>swc</type>
<scope>caching</scope>
</dependency>
<!-- OSMF SWC would go here. -->
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>framework</artifactId>
<version>${flex.sdk.version}</version>
<type>swc</type>
<scope>caching</scope>
</dependency>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>spark</artifactId>
<version>${flex.sdk.version}</version>
<type>swc</type>
<scope>caching</scope>
</dependency>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>sparkskins</artifactId>
<version>${flex.sdk.version}</version>
<type>swc</type>
<scope>caching</scope>
</dependency>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>rpc</artifactId>
<version>${flex.sdk.version}</version>
<type>swc</type>
<scope>caching</scope>
</dependency>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>datavisualization</artifactId>
<version>${flex.sdk.version}</version>
<type>swc</type>
<scope>caching</scope>
</dependency>
<!-- Flex framework resource bundles -->
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>flex-framework</artifactId>
<version>${flex.sdk.version}</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>org.puremvc.pipes</groupId>
<artifactId>Utility_AS3_MultiCore_Pipes</artifactId>
<version>1.1</version>
<type>swc</type>
<scope>rsl</scope>
</dependency>
<dependency>
<groupId>org.puremvc.multicore</groupId>
<artifactId>PureMVC_AS3_MultiCore</artifactId>
<version>1.0.5</version>
<type>swc</type>
<scope>rsl</scope>
</dependency>
2. web-application pom :
<build>
<finalName>foo</finalName>
<plugins>
<plugin>
<groupId>org.sonatype.flexmojos</groupId>
<artifactId>flexmojos-maven-plugin</artifactId>
<version>${flex-mojos-plugin.version}</version>
<extensions>true</extensions>
<executions>
<execution>
<phase>compile</phase>
<id>copy-flex-resources</id>
<goals>
<goal>copy-flex-resources</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>com.adobe.flex</groupId>
<artifactId>compiler</artifactId>
<version>${flex.sdk.version}</version>
<type>pom</type>
</dependency>
</dependencies>
<configuration>
<stripVersion>true</stripVersion>
<copyRSL>true</copyRSL>
</configuration>
</plugin>
</plugins>
</build>
私はこの問題を解決しましたが、解決策が見つかりませんでした。どんな助けでも大歓迎です
更新 1 : @J_A_X、何とか 4.0-RC1 と pom の修正の組み合わせで動作するようになりました。しかし、別の問題があります。私が追加したカスタム依存関係
<dependency>
<groupId>org.puremvc.pipes</groupId>
<artifactId>Utility_AS3_MultiCore_Pipes</artifactId>
<version>1.1</version>
<type>swc</type>
<scope>rsl</scope>
</dependency>
<dependency>
<groupId>org.puremvc.multicore</groupId>
<artifactId>PureMVC_AS3_MultiCore</artifactId>
<version>1.0.5</version>
<type>swc</type>
<scope>rsl</scope>
</dependency>
コピーされていません。次のエラーが発生する
[エラー] プロジェクト smh で目標 org.sonatype.flexmojos:flexmojos-maven-plugin:4.0-RC1:copy-flex-resources (copy-flex-resources) を実行できませんでした: 目標 org.sonatype の copy-flex-resources を実行します.flexmojos:flexmojos-maven-plugin:4.0-RC1:copy-flex-resources failed: アーティファクト com.hp.ci:ci-ui-lib:swf:0.0.1-SNAPSHOT の解決に失敗しました -> [ヘルプ 1]
flex-mojos プラグイン shud は、リポジトリにインストールする代わりに、それぞれの swc から swf を自動的に抽出し、宛先にコピーすると思います。私はこれで正しいですか?