002-Maven related operations in IDEA of Java Web Learning (1)

1. Start IDEA. The IDEA I use is version 2019.3.3.
002-Maven related operations in IDEA of Java Web Learning (1)
2. Create a Maven Web project and
002-Maven related operations in IDEA of Java Web Learning (1)
002-Maven related operations in IDEA of Java Web Learning (1)
select Create from archetype. The effect is to use Maven templates or not.
002-Maven related operations in IDEA of Java Web Learning (1)
Select org.apache.maven.archetypes:maven-archetype-webapp below and
002-Maven related operations in IDEA of Java Web Learning (1)
use this template to build a simple Java web application.
002-Maven related operations in IDEA of Java Web Learning (1)
GroupId is generally the reverse order of your company's domain name, ArtifactId is the project name, and Version is the version number. After filling in, since I have set the working directory of IDEA, the relevant information will be automatically filled in above, and you can modify it yourself: After
002-Maven related operations in IDEA of Java Web Learning (1)
clicking Next, Configure your own Maven
002-Maven related operations in IDEA of Java Web Learning (1)
in the new window. At the top, select the Maven directory we just installed by ourselves, and
002-Maven related operations in IDEA of Java Web Learning (1)
click Finish to complete the creation of the configuration file and local warehouse .
3. After the automatic import package
project is started, there is a pop-up window in the lower right corner of the window that appears, click Enable Auto-Import inside to automatically import the required jar package
002-Maven related operations in IDEA of Java Web Learning (1)
4. Wait for the project to be automatically built, when BUILD SUCCESS appears in the following message , To prove that the build was successful
002-Maven related operations in IDEA of Java Web Learning (1)
5. Observe what appears in the Maven warehouse
002-Maven related operations in IDEA of Java Web Learning (1)

Guess you like

Origin blog.51cto.com/12859164/2543859