Maven IDEA Plugin (RETIRED)
  1. Maven IDEA Plugin (RETIRED)
  2. MIDEA-102

Module filepath is generated incorrectly for sibling parent

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.1
    • Fix Version/s: 2.2
    • Labels:
      None
    • Environment:
      $ mvn -v
      Maven version: 2.0.7
      Java version: 1.5.0_11
      OS name: "windows xp" version: "5.1" arch: "x86"
      cygwin
    • Number of attachments :
      2

      Description

      I have a multi-module mvn project.

      When I do an mvn idea:clean idea:idea, the following ProjectModuleManager snippet in the top level .ipr is generated:

      <component name="ProjectModuleManager">
      <modules>
      <!-- module filepath="$$PROJECT_DIR$$/$

      {pom.artifactId}

      .iml"/ -->
      <module filepath="$PROJECT_DIR$/gateway.iml"/>
      <module filepath="$PROJECT_DIR$/C:/dev/voca/gateway/domain/gateway-domain.iml"/>
      <module filepath="$PROJECT_DIR$/C:/dev/voca/gateway/instruction-store/gateway-instruction-store.iml"/>
      <module filepath="$PROJECT_DIR$/C:/dev/voca/gateway/parser/gateway-parser.iml"/>
      <module filepath="$PROJECT_DIR$/C:/dev/voca/gateway/psrgeneration/gateway-psr-generation.iml"/>
      <module filepath="$PROJECT_DIR$/C:/dev/voca/gateway/output/gateway-output.iml"/>
      <module filepath="$PROJECT_DIR$/C:/dev/voca/gateway/destination-resolver/gateway-destination-resolver.iml"/>
      <module filepath="$PROJECT_DIR$/C:/dev/voca/gateway/choreography/gateway-choreography.iml"/>
      <module filepath="$PROJECT_DIR$/C:/dev/voca/gateway/presentation/gateway-presentation.iml"/>
      <module filepath="$PROJECT_DIR$/C:/dev/voca/gateway/assembly/gateway-assembly.iml"/>
      </modules>
      </component>

      The $PROJECT_DIR in this case is C:/dev/voca/gateway/.

      But this path is being appended in a hard-coded fashion after the $PROJECT_DIR entry.

      The symptom in Intellij is the following error message:

      Cannot load module: File C:\dev\voca\gateway\C:\dev\voca\gateway\domain\gateway-domain.iml does not exist
      Would you like to remove the module from the project?

      The workaround is to delete the extra appended file path from each module entry in the above mentioned snippet.

        Issue Links

          Activity

          Hide
          Dennis Lundberg added a comment -

          The tests currently fail in Linux/Unix environments. I need to try and fix that before I can make the release.

          Show
          Dennis Lundberg added a comment - The tests currently fail in Linux/Unix environments. I need to try and fix that before I can make the release.
          Hide
          gotama added a comment -

          Dennis,

          Have you made any headway on this? I'm sure a lot of people would appreciate this fix and a working 2.2 IDEA Maven2 plugin.

          How can we help?

          When you say the tests fail, are those checked in 2.2 junit tests? We should be able to do something like create a test project and a junit test, check them in, and then test it in all environments (XP/Cygwin, XP, Linux, OSX) until it passes. Is this already checked in? If it is, then contributors could try to fix it and we'd all agree on exactly what has to pass. Can we try to outline this?

          Thanks,
          Blaine

          Show
          gotama added a comment - Dennis, Have you made any headway on this? I'm sure a lot of people would appreciate this fix and a working 2.2 IDEA Maven2 plugin. How can we help? When you say the tests fail, are those checked in 2.2 junit tests? We should be able to do something like create a test project and a junit test, check them in, and then test it in all environments (XP/Cygwin, XP, Linux, OSX) until it passes. Is this already checked in? If it is, then contributors could try to fix it and we'd all agree on exactly what has to pass. Can we try to outline this? Thanks, Blaine
          Hide
          Daniel Frey added a comment -

          For me this issue is open for the described file structure (see comments above). However, a slightly altered patch works fine. Please find it attached.

          Show
          Daniel Frey added a comment - For me this issue is open for the described file structure (see comments above). However, a slightly altered patch works fine. Please find it attached.
          Hide
          Dennis Lundberg added a comment -

          I've managed to make the test pass on both Windows and Ubuntu now.

          It would be great if people could test the new maven-idea-plugin 2.2-20080719.165010-7 SNAPSHOT that I have deployed.

          Also I would appreciate if someone with Cygwin installed could run 'mvn test' on the SVN trunk, to make sure the tests pass there as well.

          Show
          Dennis Lundberg added a comment - I've managed to make the test pass on both Windows and Ubuntu now. It would be great if people could test the new maven-idea-plugin 2.2-20080719.165010-7 SNAPSHOT that I have deployed. Also I would appreciate if someone with Cygwin installed could run 'mvn test' on the SVN trunk, to make sure the tests pass there as well.
          Hide
          Dennis Lundberg added a comment -

          OK, I'm closing this as fixed now. I got one response in private that it works.

          Show
          Dennis Lundberg added a comment - OK, I'm closing this as fixed now. I got one response in private that it works.

            People

            • Assignee:
              Dennis Lundberg
              Reporter:
              Joern Huxhorn
            • Votes:
              12 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: