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

Duplicate src classpathentry in reactor mode when project depends on multiple artifacts produced by a single project

    XMLWordPrintableJSON

Details

    Description

      For the given multi module project:
      project

      • pom.xml has modules: sub1 and sub2
      • sub1/
      • pom.xml
      • target/
      • sub1-1.0.jar
      • sub1-1.0-alt.jar
      • sub2/
      • pom.xml
      • depends on: sub1-1.0.jar and sub1-1.0-alt.jar

      When running "mvn eclipse:eclipse" at the root of project/, in sub2/.classpath, the classpathentry for sub1 will be generated for each artifact produced by sub1 that sub2 depends on:
      <classpath>
      <classpathentry kind="src" path="/sub1"/>
      <classpathentry kind="src" path="/sub1"/>
      </classpath>

      Eclipse therefore complains about a duplicate classpathentry.

      A workaround is to manually remove the duplicate project from the Java Build Path.

      Kind regards,

      Cédric Vidal

      Attachments

        Activity

          People

            Unassigned Unassigned
            cedricvidal Cédric Vidal
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: