How does IntelliJ IDEA create a java maven project
This article mainly shows you "IntelliJ IDEA how to create a java maven project", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "IntelliJ IDEA how to create a java maven project" this article.
First, create a maven project
1. Configure maven repository information, file- > setting
Check if it is the maven address we are using
two。 Create maven project file- > new-> project
Click maven and check create from.. Select webapp and click next
3. Sets the coordinate information for the project.
Maven's groupid and artifactId are collectively referred to as "coordinates", which are designed to ensure the uniqueness of the project, through which a project can be uniquely identified. Groupid generally represents a company or group, you can write the company domain name, and artifactId represents the project name.
4. Local warehouse address.
5. The project was created successfully
2. Configure maven project
The successful creation of the project directory structure is all missing and we need to create it manually.
Create the java and resources folders under the main directory, respectively.
Also create a new test test folder under main, and then create a new Java test source folder and a resource test resource folder under this folder.
Modify the role of the file, as follows:
Right-click the project file and select Open Module Settings to open the project configuration page to change
The configuration depends on the jar package.
III. Tomcat plug-in
Configure plug-ins in 1.pom.xml
Org.apache.tomcat.maven
Tomcat7-maven-plugin
2.2
8080
/
The Tomcat plug-in is configured in pom.xml, and the corresponding plug-in appears in the Maven Project on the right
Started successfully
The visit was successful and the project was completed!
These are all the contents of the article "how IntelliJ IDEA creates a java maven Project". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!