[ http://jira.codehaus.org/browse/MIDEA-110?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dennis Lundberg closed MIDEA-110. --------------------------------- Resolution: Duplicate > multi-module master ipr generated incorrectly > --------------------------------------------- > > Key: MIDEA-110 > URL: http://jira.codehaus.org/browse/MIDEA-110 > Project: Maven 2.x IDEA Plugin > Issue Type: Bug > Environment: Windows XP / opened with IntelliJ 7.0.3 (EAP) > Reporter: Darren Davis > > I have a multi-module web-application which works fine with maven2. In order > to make it more friendly with our source control system, the master project > pom file was moved into it's own directory, parallel to the child modules. > C:\\Development\mavenflattened\GetSmartMaster > The modules section of the pom.xml references each child module using a > relative filepath: > <modules> > <module>../GetSmartLogging</module> > <module>../GetSmart</module> > </modules> > Each child pom.xml was modified to reference the parent, also using a > relative filepath: > <parent> > <groupId>com.foo.max</groupId> > <artifactId>app</artifactId> > <relativePath>../GetSmartMaster/pom.xml</relativePath> > </parent> > With this configuration I can successfully compile,build, deploy the entire > application the mvn commands. > When I create an IntelliJ ipr/iml files using the idea:idea goal, the modules > filepath are incorrect in the ipr file. These appear as: > <modules> > <module filepath="$PROJECT_DIR$/app.iml"/> > <module > filepath="$PROJECT_DIR$/C:/development/mavenflattened/GetSmartLogging/GetSmartLogging.iml"/> > <module > filepath="$PROJECT_DIR$/C:/development/mavenflattened/GetSmart/GetSmart.iml"/> > </modules> > When i try to open up the master ipr with IntelliJ, I get the following > error message for each module: > Cannot load module file > 'C:\development\mavenflattened\GetSmartMaster\C:\development\mavenflattened\GetSmartLogging\GetSmartLogging.iml': > File > C:\development\mavenflattened\GetSmartMaster\C:\development\mavenflattened\GetSmartLogging\GetSmartLogging.iml > does not exist > Would you like to remove the module from the project? > I have to manually edit the generated ipr file to get the project to open > with the correct module references. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira