Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How does IntelliJ IDEA create a java maven project

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report