Tôi cố gắng để chuyển đổi dự án flex 4.6 vào maven Sau đây là pom.xml của tôiflex 4.6 pom tập tin depency không giải quyết
<build>
<sourceDirectory>src</sourceDirectory>
<plugins>
<plugin>
<groupId>org.sonatype.flexmojos</groupId>
<artifactId>flexmojos-maven-plugin</artifactId>
<version>4.0-RC2</version>
<extensions>true</extensions>
<dependencies>
<dependency>
<groupId>com.adobe.flex</groupId>
<artifactId>compiler</artifactId>
<version>4.6.0.23201</version>
<type>pom</type>
</dependency>
</dependencies>
<executions>
<execution>
<goals>
<goal>wrapper</goal>
</goals>
<configuration>
<parameters>
<swf>${build.finalName}</swf>
<width>100%</width>
<height>100%</height>
</parameters>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>flex-framework</artifactId>
<version>4.6.0.23201</version>
<type>pom</type>
</dependency>
</dependencies>
<repositories>
<repository>
<id>flexmojos</id>
<url>http://repository.sonatype.org/content/groups/flexgroup/</url>
</repository>
</repositories>
Lỗi Tôi nhận được là Như sau:
[LỖI ] Dự án com.adobe: gDash-main-maven: 1.0-SNAPSHOT (C: \\ pom.xml) có 1 lỗi [ERROR] Unresolveable build extension: Plugin com.adobe.flex.compiler: batik- all- flex: 4.6.0.23201 hoặc một trong các phụ thuộc của nó không thể được giải quyết: Các follo cánh hiện vật không thể được giải quyết: com.adobe.flex.compiler: batik-all-flex: jar: 4.6.0.23201, com.adobe.flex: trình biên dịch: pom: 4.6.0.23201: Không thể tìm thấy tạo phẩm c om .adobe.flex.compiler: batik-all-flex: jar: 4.6.0.23201 ở giữa (http://repo.ma ven.apache.org/maven2) -> [Help 2] org.apache.maven.plugin.PluginResolutionException: Plugin com.adobe.flex.compile r: batik-all-flex: 4.6.0.23201 hoặc một trong số các phụ thuộc không thể giải quyết được: T sau các tạo phẩm không thể được giải quyết: com.adobe.flex.compiler: batik-all - flex: jar: 4.6.0.23201, com.adobe.flex: trình biên dịch: pom: 4.6.0.23201: Không tìm thấy ar tifact com.adobe.flex.compiler: batik-all-flex: jar: 4.6.0.2320 1 ở miền trung (http: //repo.maven.apache.org/maven2)
Tôi biết sự lộng lẫy của nó nhưng được trợ giúp. Vì tôi đã thử nhiều kết hợp.
Cảm ơn nó đã hoạt động :) – neoahead