如何将Maven War项目转换为Openshift中的EAR项目? [英] How to convert Maven War project to an EAR project in Openshift?
问题描述
我使用JBOSS AS 7.1盒在Openshift中创建了一个JEE应用程序,使用War部署格式生成了Maven项目。
我需要使用EJB应用程序,但战争格式不能持有EJB所以我改变了从战争到耳朵,问题是,当我部署耳朵应用程序不起作用(访问主页时404错误)。
为了使这项工作有任何简单的解决方案吗?
b $ b或者我应该创建两个单独的项目(一个EJB项目和另一个JSF项目)和一个父POM?实际上,可以在WAR档案中打包EJB: JEE6教程,所以我决定坚持下去。
或者,也可以使用Maven的项目组合将项目从WAR转换为EAR(有用的链接)。
I have created an JEE application in Openshift using the JBOSS AS 7.1 cartridge a Maven project have been generated with the War deployment format.
I need to use EJBs into the application but the War format cannot hold EJB so I changed the from War to Ear, the problem is that when I deploy the Ear the application does not Work(404 Error when I access the home page).
Is there any simple solution in order to make this work?
Or Should I create two seperate projects(one EJB project and another JSF project) and a parent POM?
Actually it is possible to package EJBs inside a WAR archive : JEE6 Tutorial, so I decided to stick with that.
Alternatively it is also possible to convert a project from WAR to EAR by using Maven's project composition (useful link).
这篇关于如何将Maven War项目转换为Openshift中的EAR项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!