You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Darren Davis (JIRA)" <ji...@codehaus.org> on 2008/01/02 19:34:57 UTC

[jira] Created: (MIDEA-110) multi-module master ipr generated incorrectly

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

        

[jira] Commented: (MIDEA-110) multi-module master ipr generated incorrectly

Posted by "Paolo Compieta (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MIDEA-110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=131128#action_131128 ] 

Paolo Compieta commented on MIDEA-110:
--------------------------------------

I'm facing exactly the same problem on:
- IntelliJ 6.0.6
- maven-idea-plugin:2.1

I'm designing a flat structure for all maven project, because of Eclipse-compatibility: it's really annoying having to manually fix each submodule's path in the xml file.

Note: my modules do not specify the parent's 'relativePath'.

Thanks

> 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

        

[jira] Closed: (MIDEA-110) multi-module master ipr generated incorrectly

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
     [ 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

        

[jira] Commented: (MIDEA-110) multi-module master ipr generated incorrectly

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MIDEA-110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_126596 ] 

Dennis Lundberg commented on MIDEA-110:
---------------------------------------

Which version of maven-idea-plugin are you using?
Are you using cygwin?

> 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

        

[jira] Commented: (MIDEA-110) multi-module master ipr generated incorrectly

Posted by "Haus Code (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MIDEA-110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_123465 ] 

Haus Code commented on MIDEA-110:
---------------------------------

We ran into the same issue. Using Maven 2.0.6 works fine, 2.0.7 and 2.0.8 are broken

> 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