Domanda

I made a web application with maven spring 4 hibernate 4 and primefaces in one web project now i want to make a multi model project : main(packaging pom) presentation(view packaging ear) business(packaging war) and integration (for jpa and hibernate) that's alll what i know can someone help me how to do it from the scratch because it's my first time and thx

È stato utile?

Soluzione

The structure of which you have spoken is quite good and simple, this tree should reflect it

pom.xml (aggregator, packagin pom)

  • EAR-front-end
  • WAR-business
  • JAR-integration

So let's start from creating your own empty structure, then starting with integration of the various parts of the old structure, beginning from the integration layer...in turn integrates also a solid structure of unit tests, I would not exclude the possibility of dividing even the three main entities, the EAR , the WAR and JAR (integration) in sub-modules to increase the modularity of the application and facilitate the integration and maintenance activities.

I hope this can be a good starting point

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top