简体   繁体   English

创建模块化Web项目(JAVA)

[英]Create modular web project (JAVA)

I have a very complex web project developed using Java 6, Struts 1.1 and deployed in a Tomcat 6 server. 我有一个非常复杂的Web项目,它使用Java 6,Struts 1.1开发并部署在Tomcat 6服务器中。 (Eclipse as IDE) (Eclipse作为IDE)

Now, I have the need to start developing more functions, but I want to start this in new modules, independent from the big project, so this module can be deployed separately, and also, this will help me to manage more developers working in parallel. 现在,我需要开始开发更多的功能,但是我想在独立于大型项目的新模块中启动此功能,因此可以单独部署该模块,这也将帮助我管理更多并行工作的开发人员。

I know how to do this, if the module only have logic, I can make a new project and export as a jar? 我知道该怎么做,如果模块只有逻辑,我可以创建一个新项目并将其导出为jar? but in this case, I´ll have JSP pages too.. any ideas? 但是在这种情况下,我也会有JSP页面。

You should consider migrating to Apache Maven , which manages your dependencies and encourages you to structure your code into a parent project and sub-modules. 您应该考虑迁移到Apache Maven ,后者管理您的依赖关系,并鼓励您将代码结构化为父项目和子模块。 It will also help enable your project to be worked in parallel by multiple developers. 它还将帮助您的项目由多个开发人员并行处理。

Sonatype has a couple of online books that do a good job of introducing Maven: Sonatype有一些在线书籍,在介绍Maven方面做得很好:

The ear format supports deploying multiple applications (war files) as a unit. 耳朵格式支持将多个应用程序(war文件)作为一个单元部署。 Not sure if this helps in your situation, though. 不过,不确定这是否对您有帮助。

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

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