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

Dependencies of type test-jar get added twice

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1
    • 2.2
    • None
    • None

    Description

      Consider a project with these dependencies:

      <dependency>
      <groupId>org.springframework.richclient</groupId>
      <artifactId>spring-richclient-core</artifactId>
      <version>${pom.version}</version>
      </dependency>
      <dependency>
      <groupId>org.springframework.richclient</groupId>
      <artifactId>spring-richclient-core</artifactId>
      <type>test-jar</type>
      <version>${pom.version}</version>
      <scope>test</scope>
      </dependency>

      From Larry Streepy:
      "When the eclipse plugin processes this pom, it processes both dependency
      entries and adds each of them to the classpath as type "src". It
      doesn't appear to be doing any kind of handling for duplicate entries,
      and I see nothing in the plugin code that seems to deal with the "type"
      of a dependency."

      Attachments

        1. meclipse-86-maven-eclipse-plugin.patch
          2 kB
          Larry Streepy
        2. meclipse-86-patch.txt
          2 kB
          Larry Streepy

        Activity

          People

            fgiust Fabrizio Giustina
            ge0ffrey.desmet Geoffrey De Smet
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: