1. Start IDEA. The IDEA I use is version 2019.3.3.
2. Create a Maven Web project and
select Create from archetype. The effect is to use Maven templates or not.
Select org.apache.maven.archetypes:maven-archetype-webapp below and
use this template to build a simple Java web application.
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
clicking Next, Configure your own Maven
in the new window. At the top, select the Maven directory we just installed by ourselves, and
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
4. Wait for the project to be automatically built, when BUILD SUCCESS appears in the following message , To prove that the build was successful
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
Recommended
Ranking