First git project address: http://git.oschina.net/alexgaoyh/MutiModule-parent
Recently in learning to use MAVEN, in the process of learning to use the MAVEN multi-module project, I intend to integrate spring MyBatis project practiced hand, the division of the module is just beginning very tangled, is based on the division of business or according to the module division, finally think that the idea of MVC has his existence of truth, In the process of multi-module partitioning, the partitioning of domain Persist Service Controller (Entity DAO Service Controller) was used, with the following specific items:
Mutimodule-captcha: Verification Code section;
Mutimodule-domain: entity class part;
Mutimodule-parent: Parent module, integration of each sub-module;
Mutimodule-persist: Persistent part, database;
Mutimodule-service: Business layer part;
Mutimodule-web: Presentation layer (the only one WebApp project, packaged as a war form)
The project only integrates the Spring MyBatis section, and has a modular division, and does not have a lot of code, specific operating results such as:
Able to run successfully, and data can be saved to the database section;
The project simply integrates the spring mybatis and has a modular division, and there is a lack of business processing in many places, such as transactions, the processing of common methods, and processing in the next step.
PS: The code section uses a nexus, which executes the command using MVN test, mvn install, mvn deploy;
The associated Nexus is partially uploaded as shown in the jar file:
Maven Multi-module project implementation