我正在尝试使用M2E中使用maven-jaxrpc-plugin
创建JAX-RPC WebService客户端。这是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
-> 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,并且插件不在那里。但是,不应该从中央回购中下载后卫吗?在我的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存储库视图中单击"中央存储库"上的更新,但这无济于事。我真的在为此挠头:(
中央Maven存储库中不存在此特定库,也不存在任何公开可用的存储库。它是未发布的代码,因此,无论您如何配置POM或Eclipse,您都将无法下载它。
此库的来源存在于此(https://github.com/anomen-s/maven-jaxrpc-plugin)。
这个项目期望用户克隆它的git存储库并在本地构建,这将把它的伪像放在您本地的Maven Cache(即〜/.m2/存储库)中。完成此操作后,它将用于您的项目。
有关如何构建它的说明是在项目的readme.md文件中。