java Eclipse没有从central maven repo下载插件
我正在尝试使用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>
但是当Iright click
->maven
->install
我得到以下错误
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]
我检查了我的组织nexus,但插件不在那里。然而,maven难道不应该后退一步,从central repo下载它吗?在我的m2settings.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 repository视图在中央存储库上单击鼠标右键进行更新,但没有任何帮助。我真的很抓狂:(
# 1 楼答案
这个特定的库在中央Maven存储库中不存在,也不存在任何公开可用的存储库。它是未发布的代码,因此,无论您如何配置POM或Eclipse,都无法下载它
此库的源代码存在于此处(https://github.com/anomen-s/maven-jaxrpc-plugin)
这个项目希望用户克隆它的Git存储库并在本地构建它,这将把它的工件放在本地Maven缓存中(即~/.m2/存储库)。一旦你这样做了,它将可用于你的项目
关于如何构建它的说明在项目的自述文件中。md文件