gpt4 book ai didi

apache-flex - flex 4.6 pom 文件依赖没有解决

转载 作者:行者123 更新时间:2023-12-04 21:45:30 25 4
gpt4 key购买 nike

我正在尝试将 flex 4.6 项目转换为 maven 以下是我的 pom.xml

    <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>

我得到的错误如下:

[ERROR] The project com.adobe:gDash-main-maven:1.0-SNAPSHOT (C:\\pom.xml) has 1 error [ERROR] Unresolveable build extension: Plugin com.adobe.flex.compiler:batik- all-flex:4.6.0.23201 or one of its dependencies could not be resolved: The following artifacts could not be resolved: com.adobe.flex.compiler:batik-all-flex:jar :4.6.0.23201, com.adobe.flex:compiler:pom:4.6.0.23201: Could not find artifact com.adobe.flex.compiler:batik-all-flex:jar:4.6.0.23201 in central (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 or one of its dependencies could not be resolved: T he following artifacts could not be resolved: com.adobe.flex.compiler:batik-all- flex:jar:4.6.0.23201, com.adobe.flex:compiler:pom:4.6.0.23201: Could not find ar tifact com.adobe.flex.compiler:batik-all-flex:jar:4.6.0.23201 in central (http://repo.maven.apache.org/maven2)

最佳答案

我也面临同样的问题。将此添加到您的 pom.xml文件(例如在 <repositories>...</repositories> 之后):

<pluginRepositories>
<pluginRepository>
<id>flex-mojos-plugin-repository</id>
<url>http://repository.sonatype.org/content/groups/flexgroup</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>

为我解决了:)

一些 IDE 会生成一个已经包含这个插件库的 POM 文件。

关于apache-flex - flex 4.6 pom 文件依赖没有解决,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15114613/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com