I am using eclipse IDE mars version.In that I have a maven project.I need to deploy the maven project as jar file in my tomcat's deploy path when I publish the tomcat. But when I publish the tomcat the maven project is deployed as folder where it contains class files,META_INF and WEB_INF folders.
我正在使用eclipse IDE mars版本。我有一个maven项目。当我发布tomcat时,我需要在tomcat的部署路径中将maven项目部署为jar文件。但是当我发布tomcat时,maven项目被部署为文件夹,其中包含类文件,META_INF和WEB_INF文件夹。
How to pack the maven project as jar when I publish the tomcat?
当我发布tomcat时如何将maven项目打包为jar?
I need to move the deployed jars from deploy path to lib folder of tomcat.
我需要将部署的jar从部署路径移动到tomcat的lib文件夹。
Please anyone suggest me how to get it done. Thanks.
请有人建议我如何完成它。谢谢。
1 个解决方案
#1
1
Make sure that the packaging
tag in you pom.xml is set to war
确保pom.xml中的包装标签设置为war
<packaging>war</packaging>
#1
1
Make sure that the packaging
tag in you pom.xml is set to war
确保pom.xml中的包装标签设置为war
<packaging>war</packaging>