[英]Eclipse is not downloading plugin from central maven repo
I am trying to create a JAX-RPC webservice client using maven-jaxrpc-plugin
in Eclipse using M2E. 我正在尝试使用M2E在Eclipse中使用
maven-jaxrpc-plugin
创建一个JAX-RPC Web服务客户端。 Here is the corresponding snippet from pom.xml
这是
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>
However when I right click
-> maven
-> install
但是当我
right click
-> maven
> install
I get the following error. 我收到以下错误。
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]
I checked on my organisations nexus and the plugin is not there. 我检查了我的组织联系,但该插件不存在。 However shouldn't maven fallback and download it from central repo ?
但是,是否不应该进行Maven后备并从中央仓库下载它? In my m2
settings.xml
it is configured as shown below. 在我的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>
I even tried doing right click update on central repository from Maven Repository View but that didn't help. 我什至尝试从Maven Repository View对中央存储库进行右键单击更新,但这没有帮助。 I am really scratching my head on this :(
我真的在这上挠头:(
This particular library does not exist in the Central Maven Repository nor does it exist any any publicly available repository. 该特定库在Central Maven存储库中不存在,也不存在任何任何公共可用的存储库。 It is unreleased code so, as a result, you will be unable to download it regardless of how you configure your POM or Eclipse.
它是未发布的代码,因此,无论您如何配置POM或Eclipse,您都将无法下载它。
The source for this library exists here ( https://github.com/anomen-s/maven-jaxrpc-plugin ). 该库的源代码位于此处( https://github.com/anomen-s/maven-jaxrpc-plugin )。
This project expects the user to clone it's Git repository and build it locally, which will place it's artifact in your local Maven cache (ie, ~/.m2/repository). 该项目希望用户克隆它的Git存储库并在本地构建它,这会将其工件放置在本地Maven缓存(即〜/ .m2 / repository)中。 Once you do this, it will be available to your project.
一旦执行此操作,它将对您的项目可用。
Instructions on how to build it are in the project's Readme.md file. 有关如何构建它的说明,请参见项目的Readme.md文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.