Maven - Generate Jar and War

后端 未结 8 2071
轻奢々
轻奢々 2020-12-29 04:24

I have a CXF WS project that I would use it in another project, I would consume this WS in a Web Project but I don\'t know how to generate Jar file.

Please have you

8条回答
  •  时光取名叫无心
    2020-12-29 05:01

    mvn package unless your project's packaging is something besides jar. Then you'd need to add an execution of the jar plugin, as described on the plugin's usage page and as the first answer showed. Better yet, if it's not a jar, divide it into two modules: one that's a jar containing your reusable code, and the other the thing that uses it.

提交回复
热议问题