From the git pull maven project guide package fails summary

Procedure: 1. Open the idea. file -> new -> Project from Version Control

   2, fill git address, click clone

Obviously a maven project, but the idea but suggested: Non-managed pom.xml file found: Click Add as Maven Project lead after the package fails, do not rely on the right side of the package, which means that after importing the project in maven project only LifeCycle, no Dependencies and Plugins.

 

In talking about the project online manual search becomes maven project :( reproduced address: https://blog.csdn.net/lcgoing/article/details/86928738 )

method one:

1. Right project file, the new file pom.xml, and fill out the contents.

2. On the right pom.xml file Add as Maven Project.

3.idea own import maven.

Method Two:

1. Right Add Framework Support Project. 2. Select maven.

Unfortunately, my problem is that the project itself is a maven project, but pulled to a local git is not, in addition to other people to pull themselves are not the problem, so the project itself and has nothing to do.

 

Enter mvn -U clean install in the idea Console -Dmaven.test.skip = true. Execution failed.

 

Empty local warehouse redirected package:

1. Remove the package of local libraries. Local repository> - the address of the local package File -> Settings -> Maven 

2. Re-import the package. Select an item right click -> Maven -> Reimport

3. Restart program

failure.

 

A variety of error: Unable to import maven project: to modify the settings of the image, became a co-worker to replace the settings file.

      Some problems were encountered while processing the POMs:

 

Or failure.

Try a variety of approaches, the Community Edition idea into a paid version, change settings file, and finally changed version of a maven. . All right

And maven3.6.2 version of idea2019.2.2 is not compatible with this garbage maven3.6.2

Before considering the problem of high version is maven, maven from 3.6.2 to 3.3.3 also replaced or not, using the last idea comes maven version.

 

Note: The new project pulled into the idea to set Jar. This may not necessarily be configured to manually set each time.

Project> under - file -> Project Structure -> Project Settings. Project SDK will choose their own local version of the SDK (because you pull down configuration SDK version may not the same and local)

Guess you like

Origin www.cnblogs.com/xuzhongyin/p/12106093.html