I am writing an application that integrates Geoserver with a custom component, intended to be hosted on a single servlet engine. Both are Maven based projects, and I would like to stay in Maven land to package it all into a nice distributable. The general idea I have is to add another module to my application that packages the application itself, Geoserver and all dependencies into one nice archive.
我正在编写一个应用程序,它将Geoserver与自定义组件集成在一起,旨在托管在单个servlet引擎上。两者都是基于Maven的项目,我想留在Maven土地将它们打包成一个很好的可分发的。我的一般想法是在我的应用程序中添加另一个模块,将应用程序本身,Geoserver和所有依赖项打包成一个很好的存档。
I am aware of the maven-assembly-plugin and its capability of storing all dependencies in a target folder, but I am not sure what would be the best way to create a package that it easy to deploy. Googling for any examples has not been successful.
我知道maven-assembly-plugin及其在目标文件夹中存储所有依赖项的能力,但我不确定什么是创建易于部署的包的最佳方法。谷歌搜索任何例子都没有成功。
Extra bonus points if the module can be started via mvn jetty:run
.
如果模块可以通过mvn jetty:run启动,则可获得额外奖励积分。
1 个解决方案
#1
Have you considered packaging them into an EAR project. It will bundle a set of WARs (and jars), and allows you to specify or generate a deployment descriptor.
您是否考虑过将它们打包成EAR项目?它将捆绑一组WAR(和jar),并允许您指定或生成部署描述符。
#1
Have you considered packaging them into an EAR project. It will bundle a set of WARs (and jars), and allows you to specify or generate a deployment descriptor.
您是否考虑过将它们打包成EAR项目?它将捆绑一组WAR(和jar),并允许您指定或生成部署描述符。