gpt4 book ai didi

java - Eclipse 未从中央 Maven 存储库下载插件

转载 作者:行者123 更新时间:2023-12-02 12:13:34 24 4
gpt4 key购买 nike

我正在尝试使用 M2E 在 Eclipse 中使用 maven-jaxrpc-plugin 创建 JAX-RPC Web 服务客户端。这是来自 pom.xml

的相应片段
<pluginManagement>
<plugins>
<plugin>
<groupId>net.sf.jaxrpc-maven</groupId>
<artifactId>maven-jaxrpc-plugin</artifactId>
<version>0.3</version>
<executions>
<execution>
<id>jax-rpc-scoring-client</id>
<phase>install</phase>
<goals>
<goal>wscompile</goal>
</goals>
</execution>
</executions>
<configuration>
<config>${project.basedir}/config.xml</config>
<operation>gen:client</operation>
<mapping>${project.build.outputDirectory}/META-INF/jaxrpc-mapping.xml</mapping>
<nd>${project.build.outputDirectory}/META-INF/wsdl</nd>
<d>${project.build.directory}/generated-classes/jaxrpc</d>
<keep>true</keep>
<verbose>true</verbose>
</configuration>
</plugin>
</plugins>
</pluginManagement>

<plugins>
<plugin>
<groupId>net.sf.jaxrpc-maven</groupId>
<artifactId>maven-jaxrpc-plugin</artifactId>
</plugin>
</plugins>

但是当我右键单击 -> maven -> 安装

我收到以下错误。

Plugin net.sf.jaxrpc-maven:maven-jaxrpc-plugin:0.3 or one of its dependencies could not be resolved: Failed to read artifact descriptor for net.sf.jaxrpc-maven:maven-jaxrpc-plugin:jar:0.3: Failure to find net.sf.jaxrpc-maven:maven-jaxrpc-plugin:pom:0.3 in http://fid-nexus.organization.com/ETCB/nexus/content/groups/fid/ was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced -> [Help 1]

我检查了我的组织关系,但该插件不存在。但是,maven 不应该回退并从中央存储库下载它吗?在我的 m2 settings.xml 中,它的配置如下所示。

                 <pluginRepository>
<id>central</id>
<url>http://repo.maven.apache.org/maven2</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>

我什至尝试从 Maven 存储库 View 右键单击中央存储库进行更新,但这没有帮助。我真的对此摸不着头脑:(

最佳答案

这个特定的库不存在于中央 Maven 存储库中,也不存在任何公开可用的存储库。它是未发布的代码,因此,无论您如何配置 POM 或 Eclipse,您都将无法下载它。

该库的源代码位于此处 ( https://github.com/anomen-s/maven-jaxrpc-plugin )。

该项目希望用户克隆其 Git 存储库并在本地构建它,这会将其 Artifact 放置在本地 Maven 缓存中(即 ~/.m2/repository)。完成此操作后,它将可用于您的项目。

有关如何构建它的说明位于项目的 Readme.md 文件中。

关于java - Eclipse 未从中央 Maven 存储库下载插件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46364181/

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