IDEA import maven project step, idea import maven
Let's just start our steps.
First, you have installed IDEA, I have IDEA15, followed by your maven plug-ins. However, these basic plug-ins are basically downloaded from IDEA, you can directly configure maven. You can download it from the official website. However, tomcat is not found in the latest version of IDEA and you need to download it.
Download IDEA and click next ...... To finish, you do not need to change anything.
After the download is complete, open a project and have a Maven project on the rightmost side of IDEA.
Click Maven Projects, and then click the plus sign above ,,
Find the root directory of your project, open it, find pom. xml, click pom. xml, and click OK. Then, your maven project has something ,,
No matter whether it is correct or not, set the maven repository and open File-Settings,
Enter maven in the search box above
On the right side, find Maven home directory.
Click the three following points, find the maven you downloaded locally (I am here maven3.3.9), click OK, in User settings file: we find the version in maven, open config, find settings. xml, click OK
Local repository: by default, it is in your drive C, where all the packages downloaded by your maven are stored. You can set them to something else, for example, I am in drive D.
After setting, click OK.
Now, go back to the Maven Project, click "clean", and then click "install". You will see a lot of downloads, which are based on your pom. the xml file is downloaded to your repository in our Local repository.
After the download, we will start to deploy tomcat.
, Locate, click the lower triangle, and the icon appears. Open
Click the plus sign above,
,
Pull down and you will see a tomcat flag
,
Open, let's select the first local,
, Click Server,
On Application server: Find your local tomcat
, After Configuration
Click Deployment.
Click the plus sign on the right and select
,
Click the first one,
,
This is my original project. After you click it, you can select one from it and click OK to see if there is any of your servers,
If not, click the + sign on Make,
Click Build Artifacts,
Come out
,
Select one, click OK, and click OK. Now let's take a look.
,,
Is this?
,
When you configure tomcat, write it as your project, and there is no x configured. I have already demonstrated it in the original project. Then, let's take a look at your project,
The running symbol already exists. Now we have configured it. Click the running symbol below to run our project, if you want to use IDEA for development, you can do it yourself. If you have any questions, feel free to ask.