IntelliJ-IDEA Maven project

IntelliJ IDEA default integrated there Maven plug-in, so we can use it directly to create a Maven project.

Modify the Maven configuration


First, open the IntelliJ IDEA development tools, menu bar: " File " -> " Settings ... ", search for "Maven" option, as shown below.
Here Insert Picture Description
Setting parameters:

  • Maven home directory: set the local Maven installation directory. Such as " D: /java/apache-maven-3.5.0 ."

  • User settings file: select the configuration file in the Maven directory. Such as " D: \ the Java \-the Apache Maven-3.5.0 \ conf \ settings.xml ", need to check " Override " option can be set.

  • Locla repository: Set the local address of the warehouse. After a good option settings, this option is automatically set.

Note: This can not set, use the default configuration for IntelliJ IDEA.

Maven project


Next, create Maven project in IntelliJ IDEA. Menu bar: "File" -> "New" -> "Project ..." , open the Create Maven.
Here Insert Picture Description
Select "Project types on the left Maven ", then click ** "Next" **.
Here Insert Picture Description

  • GoupId: Specifies the project group name or company.

  • ArifactId: Specify the project name.

Then, continue to click " the Next ."
Here Insert Picture Description

  • Project name: Setting the project name.

  • Position in the local disk set projects: Project Iocation.

Finally, click " Finish " to complete Maven project creation.

Guess you like

Origin blog.csdn.net/weixin_44474742/article/details/90574352