[ 
https://issues.apache.org/jira/browse/FELIX-2677?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12964467#action_12964467
 ] 

Marcel Offermans commented on FELIX-2677:
-----------------------------------------

Hello Marco, I just tried doing a checkout of the trunk and subsequently doing 
a "mvn -Dpackaging=bundle install" as you mention, but I don't get an error 
message. Instead the whole build finishes (after some time) succesfully. In 
case it matters, my maven version:

marrs:felix-trunk marcel$ mvn -version
Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
Java version: 1.6.0_22
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x" version: "10.6.4" arch: "x86_64" Family: "mac"

Can anybody else try this?

> 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: Trivial
>         Attachments: dependencymanager_annotation_fix.txt, 
> dependencymanager_fix.txt
>
>   Original Estimate: 0.33h
>  Remaining Estimate: 0.33h
>
> 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.

Reply via email to