简体   繁体   English

使用Maven构建耳朵项目

[英]Using maven to build ear project

Usually EAR has many package(war, jar, ejb) , added to the deployment assembly, if i want to convert such project to maven project what do i do? 通常, EAR有许多package(war, jar, ejb) ,已添加到部署程序集中,如果我想将此类项目转换为maven项目,我该怎么办? is it right to clear the deployment assembly and add those package as dependency . 清除部署程序集并将这些程序包添加为dependency

If you want to use maven to build your ear file so you have to follow maven documentation to know the process. 如果您想使用maven来构建您的ear文件,那么您必须遵循maven文档来了解该过程。

I hope that you have already some informations about maven!? 我希望您已经有了一些有关Maven的信息!

  1. If you are using Eclipse as IDE you have to install maven plugin (me2) if until now you don't have it. 如果您使用Eclipse作为IDE,则必须安装maven插件(me2)(如果直到现在还没有)。

  2. From now you have the possibility to transform your project into maven project by selecting your project and right click and configure and chose convert to maven project . 从现在开始,您可以通过选择项目并右键单击并configure并选择“ convert to maven project您的项目convert to maven project

  3. Look at maven-generate-jar-dependencies with my answer to see how you can manage them together 用我的答案看一下maven-generate-jar-dependencies ,看看如何一起管理它们

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM