Uploaded image for project: 'Maven Eclipse Plugin (RETIRED)'
  1. Maven Eclipse Plugin (RETIRED)
  2. MECLIPSE-586

Using -Declipse.projectNameTemplate is broken on multi module projects

    XMLWordPrintableJSON

Details

    Description

      In version 2.5.1 when specifying projectNameTemplate on the commandline, the .project file and references are generated correcly. In 2.6 and 2.7 the project has the correct name, but referenced projects is not using the specified pattern. This renderes the .project-file and .classpath useless.

      Example (using mvn eclipse:eclipse Declipse.projectNameTemplate=trunk[artifactId]) where moduleA depends on moduleB:

      moduleA/.project
      <projectDescription>
      <name>trunk-moduleA</name>
      <projects>
      <project>moduleB</project>
      </projects>
      [..]
      </projectDescription>

      moduleA/.classpath
      <classpath>
      [..]
      <classpathentry kind="src" path="/moduleB"/>
      </classpath>

      moduleB/.project
      <projectDescription>
      <name>trunk-moduleB</name>
      [..]
      </projectDescription>

      Attachments

        1. MNG-586,634-maven-eclipse-plugin.patch
          3 kB
          Patrik Martinovský

        Issue Links

          Activity

            People

              rfscholte Robert Scholte
              baard Baard Johansen
              Votes:
              10 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: