idea intellij maven project can't make

前端 未结 8 938
醉话见心
醉话见心 2021-02-05 23:18

I have maven project. Maven build complete SUCCESS. But i can\'t make this project.

[INFO] BUILD SUCCESS

Project contains one module. Idea can\'t see dependencie

相关标签:
8条回答
  • 2021-02-05 23:39

    Do the following steps:

    1. Find your pom.xml in your files
    2. Right click on it --> Maven --> Import
    3. Wait for the project to load :D
    4. Press ctrl+alt+shift+s (This opens the Projects window.)
    5. Go to libraries and see if they are empty (they shouldnt)
    6. If they are post your full pom.xml please so I can see the problem
    7. If you still have a problem got to File --> Invalidate Caches /Restart
    8. Go to maven and Reimport All Maven Projects
    0 讨论(0)
  • 2021-02-05 23:41

    Option Maven -> Reimport should force Intellij to reload all dependencies. Alternatively, as mentioned in comments you can click the Reimport All Maven Projects button in Maven Projects view.

    0 讨论(0)
  • 2021-02-05 23:41

    Open the module dependencies (press F12 on the module), go to Modules -> Dependencies and make sure maven imports are part of the of this.

    0 讨论(0)
  • 2021-02-05 23:42

    I had faced the same problem, and the issue was small. I had changed the location of settings.xml file of maven and Intellij was picking up the default from C:\users\.m2\settings.xml

    So point your maven settings.xml to the correct file as below: File--> Settings--> Build, Execution, Deployment--> Maven then on the right window, override "User settings file" to the settings.xml where you have in your local disk.

    If you have installed maven in a non-default location then this file you can find in: \apache-maven-3.2.3\conf\settings.xml

    0 讨论(0)
  • 2021-02-05 23:44

    In my case, I had my own apache-maven-3.5.2 folder and a misconfiguration created my problem. Maybe it's your case too:

    In rush, I set the local repository to C:/my/folder/apache-maven-3.5.2/settings.xml, but it must be a folder so Maven didn't allow me to download the dependencies. Then I changed the default (in the picture) and it worked.

    0 讨论(0)
  • 2021-02-05 23:44

    Right click on pom.xml and click Add as Maven Project

    0 讨论(0)
提交回复
热议问题