Modules (module) way to create a MAVEN project

Source: Internet
Author: User


1, the creation of the MAVEN project's parent project, the remaining modules to inherit this module, some public jar package references, are written in the Pom.xml file of this parent project, the child module can be used




Build another model (LONGKUNKUN-API)


Here is the project to create the Longkunkun-server

After you have completed the project, you will find this pattern:

To add, Longkunkun-server is created in a way that is different from the other two, Longkunkun-api and longkunkun-core are jar formats, and Longkunkun-server is in the war format.


LONGKUNKUN-API only provides interface classes and Pojo classes, the external display, and implementation of the project in the Longkunkun-core implementation, Longkunkun-core module to introduce LONGKUNKUN-API jar package.


Longkunkun-server is just a configuration file, with little code to introduce Longkunkun-api.jar and Longkunkun-cores.jar. It is important to increase the monitoring of the spring container in web.xml files and applicationcontext.xml files, web.xml files, and to publish the designed server to the Service Application Center by deploying the content in Applicationcontext.xml.


A client application such as Longkunkun-web also introduces the Longkunkun-api.jar package, invoking the Longkunkun-server code through the HSF service, which calls the code in Longkunkun-core.

The following article will explain how to call HSF.

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.