Priority
Normal
Type
Bug 
State
Fixed 
Assignee
Anna Kozlova 
Subsystem
Project Configuration 
Affected versions
Fixed in
Fixed in build
Next build 
Build
7757
Fixed in build
8260
Severity
0
  • Submitted by   Jonathan Johnson
    22 months ago (17 Mar 2008 19:28)
  • Updated by   root
    3 weeks ago (17 Jan 2010 19:58)
  • Jira: IDEA-43187
    (history, comments)

IDEA-43187

Import existing module generated by mvn IDEA:IDEA causes "Configure Path Variables" dialog to appear blank and block import.

0
pom.xml   (3 KB)
Added by <no user>
15 Sep 2009
idea-import-bug2.bmp   (943 KB)
browser.iml   (7 KB)
In version 7.0.2 I had an issue importing a module file created by maven mvn idea:idea. JetBrains sent me a workaround (while I lost sorry). I recall it was something about a variable no being defined correctly in the iml file, but I'm not sure which one and how to resolve it.

I just installed 7.0.3 and I'm getting the same issue again. I was hoping you would have fixed this. I search the issue database and I don't see me issue being tracked:

Here is the problem.

1. Create a module .iml file from a maven sub project pom.xml file using maven idea:idea.
2. Open or create an IntelliJ project
3. Select File | New Module
4. Select Import existing module
5. Navigate to iml file created by mvn idea:idea
6. Click Finish

Notice the "Configure Path Variables" dialog appears with nothing in it. Clicking on OK presents a "All path variables should be defined." error message and I cannot continue with the import process. See attached image and iml file.

Please let me know if there is a workaround.

Environment: XP, IBM Thinkpad
Java 5 & 6
Maven 2.0.8

Issue was resolved
Comments (3)
 
History (1)
 
Links
 
Jonathan Johnson
  Jonathan Johnson
17 Mar 2008 19:28
(22 months ago)
#permalink
Description change to ensure description search works.
Jonathan Johnson
  Jonathan Johnson
17 Mar 2008 19:53
(22 months ago)
#permalink
It appears IDEA is attempting to convert the path variables even though they are found in the XML <! > commented out path values in the iml files. Once I remove the commented out line that included the path variable the iml file imported correctly.

It appears you need to ignore and text in the xml comment blocks, especially path and environment variables.
Anton Makeev
  Anton Makeev
18 Mar 2008 11:18
(22 months ago)
#permalink
We do not support maven-idea plugin. We have an IDEA's plugin, though, that allow you to import maven projects right from the IDE
. The plugin is bundled into the distribution and you can use it without any additional configuration.