How to create and start maven parent-child projects

maven father and son project creation

1. Create a project first, this project does not need to write other code, only a pom.xml file,

2. Create modules under the project
Insert picture description here
. Except for the web layer that needs to be created with the skeleton, other dao and services do not need to use the skeleton to create keys.
Insert picture description here
Ensure that the parent project will
Insert picture description here
automatically be displayed in the pom.xml of the parent project

<modules>
    <module>ssm_dao</module>
    <module>ssm_service</module>
    <module>ssm_web</module>
  </modules>

How to start the parent-child project

1. In the parent project, you can choose the tomcat7 plug-in you bring to start
Insert picture description here

2. If you want to use the tomcat7 in the web, you need to install the parent project to the maven warehouse first, and
then use
3 to configure the local tomcat to run the project

Guess you like

Origin blog.csdn.net/he1234555/article/details/113847672