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.

      1. toRelative.out
        6 kB
        Christian Nelson
      2. toRelative-2.out
        6 kB
        Christian Nelson

        Issue Links

          Activity

          Hide
          Dennis Lundberg added a comment -

          OK, new SNAPSHOT deployed with a possible solution.
          Please give it a try and post your "toRelative..." output once again.

          Show
          Dennis Lundberg added a comment - OK, new SNAPSHOT deployed with a possible solution. Please give it a try and post your "toRelative..." output once again.
          Hide
          Christian Nelson added a comment -

          This is with the latest snapshot.

          Show
          Christian Nelson added a comment - This is with the latest snapshot.
          Hide
          Dennis Lundberg added a comment -

          Fixed in SVN r556436.

          Show
          Dennis Lundberg added a comment - Fixed in SVN r556436.
          Hide
          Ben Hood added a comment -

          Works for me. Thanks Dennis!

          Show
          Ben Hood added a comment - Works for me. Thanks Dennis!
          Hide
          Christian Nelson added a comment -

          And for me. Thanks!

          Show
          Christian Nelson added a comment - And for me. Thanks!

            People

            • Assignee:
              Dennis Lundberg
              Reporter:
              Ben Hood
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: