![](/img/trans.png)
[英]Publish binary file to maven artifactory along with JAR files using Jenkins
[英]Creating a war file of the whole project and a jar file for a class with main method (along with the dependent classes and jar files) using maven
我有一个CXF WS项目,需要使用maven创建一个包含整个方法的war文件和一个具有main方法的类的jar文件(以及相关类和jar文件)(用于代码可重用性)。 请帮我怎么做。 我需要知道pom.xml文件中需要提供的内容,请指导我。
做事的方式Maven的是你创建一个神器(例如, 无论是战争或JAR)每个模块。 由于您需要一个罐子和一场战争,因此您至少要利用两个模块。 每个模块都带有自己的pom.xml文件进入自己的目录。 据推测,战争将取决于罐子。
Maven对多模块项目提供了很多支持 ,以简化多个模块之间的维护和配置共享。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.