Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-2677

duplicate entry in pom.xml (dependencymanager and dependencymanager/annotation) for org.apache.maven:maven-plugin-api:jar

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • None
    • Dependency Manager
    • None

    Description

      After checkout http://svn.apache.org/repos/asf/felix/trunk, running "mvn -Dpackaging=plugins install" with no problems. But running "mvn -Dpackaging=bundle install" causes the following error:

      [INFO] Scanning for projects...
      [ERROR] The build could not read 1 project -> [Help 1]
      [ERROR] The project org.apache.felix:dependencymanager-reactor:3.0.0-SNAPSHOT (/home/mpoehl01/workspace/trunk/dependencymanager/pom.xml) has 1 error
      [ERROR] 'dependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.apache.maven:maven-plugin-api:jar -> duplicate declaration of version 2.0
      [ERROR]
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR]
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException

      There is simply a duplicate entry in dependencymanager/pom.xml, and the same with dependencymanager/annotations/pom.xml. The duplicate entry is:
      <dependency>
      <groupId>org.apache.maven</groupId>
      <artifactId>maven-plugin-api</artifactId>
      <version>2.0</version>
      </dependency>
      Delete one in both poms and everything will work fine.

      Attachments

        1. dependencymanager_annotation_fix.txt
          0.6 kB
          Marco Poehler
        2. dependencymanager_fix.txt
          0.6 kB
          Marco Poehler

        Activity

          People

            marrs Marcel Offermans
            mpoehler Marco Poehler
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 20m
                20m
                Remaining:
                Remaining Estimate - 20m
                20m
                Logged:
                Time Spent - Not Specified
                Not Specified