简体   繁体   中英

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. (Eclipse as 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? but in this case, I´ll have JSP pages too.. any ideas?

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. 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:

The ear format supports deploying multiple applications (war files) as a unit. Not sure if this helps in your situation, though.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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