maven - multi-module building

Using the idea to create a maven project

Click next and enter GroupId ArtifactId

Click next create a project, the new project is structured as follows

Modify the demo mode is packaged pom

Created by the split-level module model, server, dao

dao layer depends on the model layer

server layer depends on the model layer

Right Project -> New -> Module

Or click File -> New -> Module

Click next

Module creates a successful demo project directory structure

demo under pom.xml

Under model pom.xml

It depends on the server layer dao

dao layer depends on the model layer

Construction of complete multi-module maven

Guess you like

Origin www.cnblogs.com/min-code/p/11100520.html