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

Marco Poehler commented on FELIX-2677:
--------------------------------------

Hello Marcel, thanks for your reply.

it is a maven problem. It only occurs when using the embedded maven that comes 
with m2eclipse (3.0-SNAPSHOT). 

I successfully checked the following maven versions on commandline and via 
m2eclipse: maven-2.2.1, maven-3.0 and maven-3.1

(Important to know: eclipse (Helios SR1) remembers the maven installation 
selected during launch creation, if you change the default installation later - 
your prior created launch configuration will use the old maven installation. To 
be sure what maven version is used, use the debug checkbox)

On commandline you won't see this issue, but with m2eclipse you are unable to 
build felix as described on http://felix.apache.org/site/building-felix.html

> 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