java - How to split a web project into 2 separate projects/modules -
i have maven web project (java) created in eclipse. due in house ide restriction had move project jdeveloper 12c , disable maven nature. had make several tweaks project's properties in jdeveloper make work.
we found back-end code (service impl, dao , entity classes) can used on several other projects evaluating/considering separate single large web project 2 projects. 1 front end, specific each project , other backend, common projects.
here few ways thought can done.
1) single large web project, create 2 projects; web ui project , web back-end project.
2) keep code , use maven modules or maven overlays feature , generate 2 wars same code.
i have not dealt projects depending on others or multi module projects lot. see issues type of architecture, or bad!
please let me know if have other suggestions or ran similar situations before. in advance.
splitting project many subproject idea. use maven multimodule project setup (docs). every frontend project have separate maven project (module in parent pom) , you'll have 1 project (module) backend.
depending on requirements create:
- an ear archive backend in ejb jar , frontends in war archives,
- a war archive every frontend project ejb jar (or jar non-plain-javaee setup) inside
web-inf/lib.
multimodule setup has few advantages , main 1 can build whole application scratch issuing single mvn command.
Comments
Post a Comment