Eclipse没有从中央maven repo下载插件

时间:2017-09-22 11:54:02

标签: java eclipse maven m2e

我正在尝试使用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>

然而,当我right click - &gt; maven - &gt; 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,插件不在那里。但是,不应该回避并从中央回购下载吗?在我的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资源库视图中对中央存储库进行右键更新,但这没有用。我真的对此感到头疼:(

1 个答案:

答案 0 :(得分:1)

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

此库的来源(https://github.com/anomen-s/maven-jaxrpc-plugin)。

该项目希望用户克隆它的Git存储库并在本地构建它,这将把它的工件放在你的本地Maven缓存中(即〜/ .m2 / repository)。完成此操作后,您的项目就可以使用它。

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

相关问题