duplicate entry in pom.xml (dependencymanager and dependencymanager/annotation)
for org.apache.maven:maven-plugin-api:jar
-------------------------------------------------------------------------------------------------------------------------
Key: FELIX-2677
URL: https://issues.apache.org/jira/browse/FELIX-2677
Project: Felix
Issue Type: Bug
Components: Dependency Manager
Reporter: Marco Poehler
Priority: Blocker
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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.