简体   繁体   English

Eclipse没有从Central Maven Repo下载插件

[英]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.

相关问题 从中央仓库下载后,Maven自定义插件不起作用 - maven custom plugin not working after download from central repo 从中央存储库下载Maven - Maven downloading from central repository 从 Maven 中央下载失败 - Downloading from Maven central failed 如何使 maven 从中央仓库下载依赖项。 而不是从远程公司回购下载。? - How to make maven download dependencies from central repo. rather than downloading from remote company repo.? 无法将工件 org.apache.maven.plugins:maven-surefire-plugin:pom:2.7.1 从/到中央 (http://repo1.Z402C5D9AF6B270711EAZD70BEE574) - Could not transfer artifact org.apache.maven.plugins:maven-surefire-plugin:pom:2.7.1 from/to central (http://repo1.maven.org/maven2) 以编程方式从远程Maven存储库下载工件 - Downloading artifacts from remote maven repo programmatically joda-time 1.6.2 jar无法从maven中央存储库下载 - joda-time 1.6.2 jar not downloading from maven central repository m2eclipse无法从中央仓库更新索引 - m2eclipse cannot update index from central repo 使用maven-eclipse-plugin将文件夹中的伪装jar文件指定到eclipse项目中,而不是M2_REPO变量 - using maven-eclipse-plugin for to specifiy depedency jar files from a folder into eclipse project, not M2_REPO variable 从 Maven Central 导入 Beat Link Java 库到 Eclipse? - Importing Beat Link Java Library From Maven Central To Eclipse?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM