zDev - M2E - WTP OSS
  1. zDev - M2E - WTP OSS
  2. MECLIPSEWTP-232

Dependencies of the same name and version are copied to the root folder of target/

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Not A Bug
    • Affects Version/s: 0.15.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Environment:
      OS: windows 2003
      jdk: 1.6
      eclipse: Helios Service Release 2
      m2e: 1.0.100.20110804
      m2e-wtp: 0.15.1.20120208
    • Global Rank:
      22620

      Description

      Suppose I have a "war" packaging project and it has dependencies on two artifacts which have the same name and version, when I import the project into eclipse (having m2e-wtp feature installed), it will:

      #1. put those two artifacts under the root folder of target/
      #2. update Maven Dependencies classpath container to point to those artifacts under target/ instead of the artifacts in local maven repository.

      This is not correct and confusing.

      More worse, if I run "mvn clean package" in command line, the two artifacts are erased from target/ folder, leaving the project in warning status in eclipse.

      It (#1+#2) happens every time I import/reopen the project or change pom.xml.

      Steps to re-produce:
      1. download the attached zip and extract
      2. import the sample project into eclipse

      You should be able to see two jars in target/ folder.
      junit-junit-3.8.2.jar
      org.mod4j.org-junit-3.8.2.jar

        Issue Links

          Activity

            People

            • Assignee:
              Fred Bricon
              Reporter:
              Shen Emac
              Last Updated By:
              Fred Bricon
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: