mercredi 27 août 2014

How to import/embed one Spring-Maven JAR Application into Another Spring-Maven WAR Application


Vote count:

0




I want to create the persistence-tier (the Model of MVC) in a different application generating a JAR that will be imported in to the WAR (With the View and Controller of MVC)...


In both aplications (the JAR and the WAR) I want to use Spring (to manage persistence and transactions and dependency injection) and Maven (to manage de dependencies of both projects)...


I think that every Spring-Maven Application would have their own applicationContext.xml (or the WAR Application could inject dependency in the JAR Application too with only one configuration file for both projects?) and I know that each one will have their own pom.xml...


But how must proceed to integrate them? I wish that the JAR Application will be declared as dependency in the WAR Application and that Maven download the Jar automatically from the SVN respository... but I guess that this another question...



asked 1 min ago







How to import/embed one Spring-Maven JAR Application into Another Spring-Maven WAR Application

Aucun commentaire:

Enregistrer un commentaire