History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-25633
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Normal Normal
Assignee: Anna Kozlova
Reporter: Jonathan Johnson
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

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

Created: 17 Mar 08 19:28   Updated: 31 Mar 08 17:08
Component/s: Project Configuration
Fix Version/s: Selena 7.0.4

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: 1. File browser.iml (8 kb)
2. File idea-import-bug2.bmp (944 kb)
3. XML File pom.xml (3 kb)

Environment:
XP, IBM Thinkpad
Java 5 & 6
Maven 2.0.8
Issue Links:
Duplicate
 
This issue is duplicated by:
IDEA-17492 idea prompts for a missing variable, ... Resolved

Build: 7,757
Fixed in build: 8,260
Severity: High


 Description  « Hide
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.



 All   Comments   Work Log   Change History      Sort Order:
Jonathan Johnson - 17 Mar 08 19:28
Description change to ensure description search works.

Jonathan Johnson - 17 Mar 08 19:53
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 - 18 Mar 08 11:18
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.