Java 使用 Maven 构建耳朵

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3379720/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-13 22:43:54  来源:igfitidea点击:

Build an ear using maven

javamaven-2buildingmaven-ear-plugin

提问by Mircea

I am new with maven, i have a task to change building of an ear from ant build to maven build. Are somewhere some tutorials related to this, how to build an ear using maven ?

我是 maven 的新手,我有一项任务是将耳朵的构建从 ant 构建更改为 maven 构建。是否有一些与此相关的教程,如何使用 maven 构建耳朵?

Please guide me if you know something related to this....

如果您知道与此相关的内容,请指导我......

Thanks

谢谢

EDIT:

编辑:

Thanks a lot for posting, i read the given links, how i understood from there, the war file and the ejb jar should be deployed to artifactory (company repository), so that its could be added as dependency in pom file from ear.

非常感谢您的发帖,我阅读了给定的链接,我是如何从那里理解的,war 文件和 ejb jar 应该部署到 artifactory(公司存储库),以便它可以作为依赖项添加到来自 ear 的 pom 文件中。

Also an ear could contain more than one war file (because i believe that my ear will contain more than one war file) ?

一只耳朵也可能包含多个War文件(因为我相信我的耳朵会包含多个War文件)?

Please let me know if i understood right this...

请让我知道我是否理解正确...

回答by Jose Diaz

You may use the Maven EAR Plugin

您可以使用Maven EAR 插件

Also, Hereis a related StackOverflow post that might be very helpful to you.

此外,是一篇相关的 StackOverflow 帖子,可能对您非常有帮助。