将wsdl文件安装到Maven存储库 [英] Installing a wsdl file into a Maven repository
本文介绍了将wsdl文件安装到Maven存储库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试将wsdl文件安装到远程Maven存储库中,因此我可以按照
I'm trying to install a wsdl file into a remote Maven repository so I can reference it in a CXF project as per this blog post.
我确定它可以手动完成,但是我想要一个实际的maven项目,以便可以利用release插件进行标记等.
I'm sure it could be done manually, but I want an actual maven project so I can make use of the release plugin for tagging etc.
有人对此有经验吗?
推荐答案
You can use the build helper maven plugin to do this. Here is an indicative code snippet
<build>
...
<plugins>
...
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>attach-artifacts</id>
<phase>package</phase>
<goals>
<goal>attach-artifact</goal>
</goals>
<configuration>
<artifacts>
<artifact>
<file>${wsdlLocation}/project.wsdl</file>
<type>wsdl</type>
</artifact>
</artifacts>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build.
这篇关于将wsdl文件安装到Maven存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文