Maven Multi-module project implementation

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.