开发环境 Java 6、Maven 2.x、Eclipse 3.4.x、JBoss 5 和 JBoss Seam
我必须组织一个开发环境,在其中可以使用 JBoss Seam、IDE eclipse 3.4.x 运行 Maven 项目并部署到 JBoss 5。 将在此环境中运行的项目基于 Java 6、EJB3 和 JSF1.2。 环境必须支持热部署。
我曾经在使用 Sysdeo Plugin 的开发环境中工作,让 Tomcat 运行我的所有应用程序 - 我很少使用 EJB(仅适用于 MDB)。 所以我更喜欢类似这样的环境。
我想知道你们使用什么类型的架构(什么样的 Eclipse 插件 - 如果它们工作正常,诸如此类的东西)
我真正不明白的是为什么我的 Maven2 项目以 SEAM 作为依赖项打包为 EAR 的文件不会出现在我的服务器中(在 Eclipse Ganymede - 选项卡服务器中),以便我进行部署(右键单击 - 选项“添加和删除项目...”)。 我是否必须包含特定的项目性质才能使 Maven2 EAR 项目对 Eclipse Ganymede 中包含的 JBoss AS 可见?
Seam 似乎与 Maven2 不太兼容。 我面临着一些问题,让它们一起工作 - 一些依赖项似乎丢失了,我必须在一些特殊的地方放置一些额外的文件,例如具有一些特殊内容的seam.properties和components.xml。 我觉得被迫使用 seam-gen 和 Ant。 太糟糕了!
I have to organize a development environment where I can run Maven projects with JBoss Seam, IDE eclipse 3.4.x and deploying to JBoss 5.
The projects that will run on this environment are based in Java 6, EJB3 and JSF1.2. The environment has to support hot-deploy.
I used to work in a development environment with Sysdeo Plugin to make Tomcat run all my applications - I've rarely used EJB (only for MDB's).
So I would prefer an environment similar to this.
I'd like to know what you guys use for the kind of architecture (what kind of eclipse plugins - if they work fine, things like that)
The thing I really didn't get right is why my Maven2 project with SEAM as a dependency packaged as EAR doesn't appear in my server (in Eclipse Ganymede - tab servers) for me to make deploy (right click - option Add and Remove Projects...).
Do I have to include an specific project nature to make my Maven2 EAR project visible to my JBoss AS included in my Eclipse Ganymede?
Seam doesn't appear to go well with Maven2. I'm facing some problems to make they work together - some dependencies appear to be missing and I have to put some extra files in some special places like seam.properties and components.xml with some special contents.
I feel like forced to use seam-gen and Ant. Too bad!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不确定这对您是否有帮助,但我们运行以下
大多数东西都在单独的虚拟机上运行,以将干扰降至最低。 Proxmox VE 的设置非常简单(15 分钟即可运行)。
Hudson 监视存储库并自动构建和测试每个推送。
如果 war 构建成功,它会自动(重新)部署(使用 hudson 插件)到 Tomcat 中并重新启动。
我极力推荐这些工具。
华泰
Not sure if this is helpful to you, but but we run the following
Most things run on separate virtual machines to keep interference to a minimum. Proxmox VE is a breeze to setup (15 mins and you are running).
Hudson monitors the repository and automatically builds and tests each push.
If the war build is successful it is automatically (re)deployed (using a hudson plugin) into Tomcat and restarted.
I cannot recommend these tools enough.
HTH
我目前正在您要求的相同环境中工作,唯一的区别是我在 tomcat 6.0.18 上运行该应用程序。 我更喜欢使用 tomcat,因为它运行速度更快,而且我现在不使用 EJB。
Eclipse 插件:
我采用了 Eclipse Java EE 版本,我不使用 seam- gen 创建基本架构。
我在这个环境下没有太多问题,有时热部署不起作用,我必须手动清理文件。
我遇到的唯一问题是将我的应用程序分成两个模块:eclipse 没有很好地完成工作(在构建另一个模块时没有获取一个模块的最后一个包),并且我发现了“禁用工作区分辨率”选项,现在工作正常。
工作正常。 希望它适合你。
I am currently working on the same environment you asked for, with the only difference I am running the app on a tomcat 6.0.18. I prefer to use tomcat 'cause it's so faster to run, and I don't use EJB for now.
Eclipse plugins :
I took the Eclipse Java EE version, I don't use seam-gen to create the basic architecture.
I don't have so many problems with this environment, sometimes the hot-deploy doesn't work and I have to manually clean files.
The only problem I had was with the separation of my app in two modules : eclipse wasn't doing the job well (not taking the last package of one module while building the other one), and I discover the option "disable workspace resolution", which works fine now.
Works fine. Hope it will for you.