Can't import the maven project in IntelliJ Idea 2016.1.1

后端 未结 11 808
无人共我
无人共我 2021-01-01 14:52

I am trying to import a project in IntelliJ Idea 2016.1.1 using: File->Project from existing sources->choose the required pom.xml

It comes to this dialog bo

相关标签:
11条回答
  • 2021-01-01 15:30

    I had this issue today and it took me 2 hours to identify and fix it. I tried to import the project from perforce workspace which had '/' in the workspace name (ABC/lighting_workspace).

    When I created another perforce workspace without '/' in the name (lighting_workspace), I was able to import the existing project :)

    0 讨论(0)
  • 2021-01-01 15:32

    I ran into this and at first it seemed due to the use of a tilde ~ in the file path of the root of the project. It also seemed to go "flaky" if you try to use a ~.

    More investigation lead to: /home/user/.IdeaIC15/system/log (might be a bit different for other systems)

    Do

    tail -100f idea.log

    in a terminal in that directory and see what you get when you click "next"

    Mine was missing / corrupt java7 instance

    All this is pertaining to Linux only.

    0 讨论(0)
  • 2021-01-01 15:32

    Had exactly the same issue, in my case it was a memory problem: the importer needed more memory than the one allowed by the VM's limit set by default after the installation of IntelliJ: I had 768 mb set by default and i moved them to 2048 mb.

    You can set this under : Preferences |-> Build, Execution, Deployment |-> Build Tools |-> Maven |-> Importing |-> VM options for importer

    0 讨论(0)
  • 2021-01-01 15:37
    1. Install latest version of Intellij Idea (leave everything by default) and Java JDK (called SDK in IDE).
    2. Create a new empty project.
    3. Press Ctrl+Alt+Shift+F to open Project Structure panel.
    4. Chose the SDK you downloaded, like : C:\Program Files\Java\jdk-10.0.2.
    5. Apply and File->Open your project
    6. Now it work ! (Also cleaned my host file)
    0 讨论(0)
  • 2021-01-01 15:40

    In my case, this problem was solved by setting the JDK in IntelliJ IDEA settings. Like this:

    Before selection correct JDK, I had the red text in this field.

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