Maven integration idea (white test)

Xianyunyehe of Time, talk about the idea maven integration

Step one: Open idea-> File-> New-> Project

Here Insert Picture Description

Step two: idea in jdk version 1.8 recommended above are picked out after the next point

Here Insert Picture Description

The third step: Fill Well, the point next.
GroupId project name
ArtifactId module name
Version current project version (snapshot snapshot version, release the official version)

Here Insert Picture Description

Step Four: Attention, this interface is the default! ! ! We have to adapt
maven home directory is the installation location maven
User settings file is settings.xml file in the conf maven, that is where you configure local storage and remote repository
Local repository is the location of your local repository

Here Insert Picture Description

Step five: This is the path after the changes, click next.

Here Insert Picture Description

Step Six: point finish.

Here Insert Picture Description

Step Seven: If BUILD SUCCESS appears Congratulations maven project to create success.

Here Insert Picture Description

Step eight: Check if there are local warehouse jar package

Here Insert Picture Description

1, after being given the IDEA import Maven project can not resolve symbol solution
https://www.cnblogs.com/kellyshang/archive/2019/09/28/11603975.html

2, IDEA Maven project after importing error Unable to import maven project: See logs for details.
The reason: idea maven and compatibility issues
to resolve: Anyway, my version is idea2019.1.3 and maven3.3.9 of.

3, IDEA import Maven project directory structure appears incomplete
https://blog.csdn.net/xintonghanchuang/article/details/90584211

5, the local repository program IDEA Maven introduced deletion jar package, where people can start a normal copy of the local repository; link or reference to the following
https://blog.csdn.net/qq_29410905/article/details/80084510

4, IDEA import the project can be more refreshed and more and more clean install.
Here Insert Picture Description

Step Nine: idea publish maven project

jsp written content.
Here Insert Picture Description

Tap install packaged, appears target folder.
Here Insert Picture Description

点edit configurations…
Here Insert Picture Description

Under tomcat with probably say, probably tell at what position.
Here Insert Picture Description

Click to configure.
Here Insert Picture Description

Find your local tomcat in the corresponding path, into the herd, point ok.
Here Insert Picture Description

This interface came to be labeled as war package, point ok
Here Insert Picture Description

If it does not appear, it will manually add, point ok, go back to the page to add deployment.
Here Insert Picture Description

The last point run on the line
Here Insert Picture Description

These problems are my pro-test passes, we hope to be useful Oh.
If you feel good, little praise.
If you feel good, to give evaluation.

Released four original articles · won praise 7 · views 1754

Guess you like

Origin blog.csdn.net/kk190511/article/details/105074447