You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Norman Maurer (JIRA)" <ji...@apache.org> on 2010/08/06 03:36:50 UTC

[jira] Created: (CAMEL-3018) Building not possible with maven3

Building not possible with maven3
---------------------------------

                 Key: CAMEL-3018
                 URL: https://issues.apache.org/activemq/browse/CAMEL-3018
             Project: Apache Camel
          Issue Type: Bug
            Reporter: Norman Maurer
         Attachments: camel-pom.diff

maven3 is a way stricter with duplicated specified dependencies, so its not possible to compile camel with it. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-3018) Building not possible with maven3

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-3018?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=61473#action_61473 ] 

Claus Ibsen commented on CAMEL-3018:
------------------------------------

Daniel let us know if Eclipse got smart and is capable of loading a pom.xml file. 

I will apply the patch. But first I give it a run on my maven 2.2.1.


> Building not possible with maven3
> ---------------------------------
>
>                 Key: CAMEL-3018
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-3018
>             Project: Apache Camel
>          Issue Type: Bug
>            Reporter: Norman Maurer
>            Assignee: Claus Ibsen
>             Fix For: 2.5.0
>
>         Attachments: camel-pom.diff, pom.patch, pom.patch
>
>
> maven3 is a way stricter with duplicated specified dependencies, so its not possible to compile camel with it. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-3018) Building not possible with maven3

Posted by "Daniel Bevenius (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-3018?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=61465#action_61465 ] 

Daniel Bevenius commented on CAMEL-3018:
----------------------------------------

Sorry about adding comments this jira but I found another issue...
Problem
=======
Running 'mvn eclipse:eclipse' using maven3 causes the following build failure:
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8.220s
[INFO] Finished at: Fri Aug 27 12:25:55 CEST 2010
[INFO] Final Memory: 59M/117M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-eclipse-plugin:2.9-SNAPSHOT:eclipse (default-cli) on project camel-core: Unable to resolve resource location: /camel-eclipse-checkstyle -> [Help 1]
[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/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :camel-core


When running with maven2 these are the dependencies for the maven-eclipse-plugin:
[DEBUG] Plugin dependencies for:

org.apache.maven.plugins:maven-eclipse-plugin:2.5.1

are:

org.apache.camel:camel-buildtools:jar:2.5-SNAPSHOT:compile
org.codehaus.plexus:plexus-archiver:jar:1.0-alpha-7:runtime
org.apache.maven:maven-project:jar:2.0.8:runtime
org.apache.maven:maven-plugin-api:jar:2.0.8:runtime
org.apache.maven:maven-model:jar:2.0.8:runtime
org.apache.maven:maven-artifact-manager:jar:2.0.8:runtime
org.apache.maven:maven-artifact:jar:2.0.8:runtime
org.codehaus.plexus:plexus-utils:jar:1.4.5:runtime
org.codehaus.plexus:plexus-interactivity-jline:jar:1.0-alpha-5:runtime
org.apache.maven:maven-archiver:jar:2.2:runtime
org.codehaus.plexus:plexus-resources:jar:1.0-alpha-4:runtime
biz.aQute:bndlib:jar:0.0.145:runtime
org.apache.maven.shared:maven-osgi:jar:0.2.0:runtime
org.eclipse.core:resources:jar:3.3.0-v20070604:runtime

Notice how 'org.apache.camel:camel-buildtools:jar:2.5-SNAPSHOT:compile' in the list above. This the jar that camel-eclipse-checkstyle is in but when running with maven3 it is not. 
I've added 'camel-buildtools' as a dependency to the eclipse-maven-plugin in parent/pom.xml (attached pom.patch) and this then worked for both maven2 and maven3.


> Building not possible with maven3
> ---------------------------------
>
>                 Key: CAMEL-3018
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-3018
>             Project: Apache Camel
>          Issue Type: Bug
>            Reporter: Norman Maurer
>            Assignee: Claus Ibsen
>             Fix For: 2.5.0
>
>         Attachments: camel-pom.diff, pom.patch
>
>
> maven3 is a way stricter with duplicated specified dependencies, so its not possible to compile camel with it. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-3018) Building not possible with maven3

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-3018?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=61469#action_61469 ] 

Willem Jiang commented on CAMEL-3018:
-------------------------------------

@Claus,
The eclipse plugin needs to set up the checkstyle configure on the eclipse project, and the checkstyle file is part of camel-buildtools.
I think it make sense to add this module dependency on the parent pom.


> Building not possible with maven3
> ---------------------------------
>
>                 Key: CAMEL-3018
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-3018
>             Project: Apache Camel
>          Issue Type: Bug
>            Reporter: Norman Maurer
>            Assignee: Claus Ibsen
>             Fix For: 2.5.0
>
>         Attachments: camel-pom.diff, pom.patch, pom.patch
>
>
> maven3 is a way stricter with duplicated specified dependencies, so its not possible to compile camel with it. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CAMEL-3018) Building not possible with maven3

Posted by "Daniel Bevenius (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-3018?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Bevenius updated CAMEL-3018:
-----------------------------------

    Attachment: pom.patch

Checked the wrong box when attaching previously.

> Building not possible with maven3
> ---------------------------------
>
>                 Key: CAMEL-3018
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-3018
>             Project: Apache Camel
>          Issue Type: Bug
>            Reporter: Norman Maurer
>            Assignee: Claus Ibsen
>             Fix For: 2.5.0
>
>         Attachments: camel-pom.diff, pom.patch
>
>
> maven3 is a way stricter with duplicated specified dependencies, so its not possible to compile camel with it. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-3018) Building not possible with maven3

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-3018?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=61477#action_61477 ] 

Claus Ibsen commented on CAMEL-3018:
------------------------------------

Applied patch to trunk: 990132

> Building not possible with maven3
> ---------------------------------
>
>                 Key: CAMEL-3018
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-3018
>             Project: Apache Camel
>          Issue Type: Bug
>            Reporter: Norman Maurer
>            Assignee: Claus Ibsen
>             Fix For: 2.5.0
>
>         Attachments: camel-pom.diff, pom.patch, pom.patch
>
>
> maven3 is a way stricter with duplicated specified dependencies, so its not possible to compile camel with it. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-3018) Building not possible with maven3

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-3018?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=61446#action_61446 ] 

Claus Ibsen commented on CAMEL-3018:
------------------------------------

Thanks Daniel. I have applied the patch to trunk: 989608.

> Building not possible with maven3
> ---------------------------------
>
>                 Key: CAMEL-3018
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-3018
>             Project: Apache Camel
>          Issue Type: Bug
>            Reporter: Norman Maurer
>            Assignee: Claus Ibsen
>             Fix For: 2.5.0
>
>         Attachments: camel-pom.diff, pom.patch
>
>
> maven3 is a way stricter with duplicated specified dependencies, so its not possible to compile camel with it. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-3018) Building not possible with maven3

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-3018?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=61443#action_61443 ] 

Claus Ibsen commented on CAMEL-3018:
------------------------------------

Daniel you have to attached the file with copyright assigned to Apache. eg there must be this apache feather logo on the attached file.

> Building not possible with maven3
> ---------------------------------
>
>                 Key: CAMEL-3018
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-3018
>             Project: Apache Camel
>          Issue Type: Bug
>            Reporter: Norman Maurer
>            Assignee: Claus Ibsen
>             Fix For: 2.5.0
>
>         Attachments: camel-pom.diff, pom.patch
>
>
> maven3 is a way stricter with duplicated specified dependencies, so its not possible to compile camel with it. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-3018) Building not possible with maven3

Posted by "Daniel Bevenius (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-3018?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=61472#action_61472 ] 

Daniel Bevenius commented on CAMEL-3018:
----------------------------------------

> why is mvn eclipse:eclipse needed? Can't you just open a pom.xml from Eclipse?
Old habit :) I'll try that instead. Thanks

> Building not possible with maven3
> ---------------------------------
>
>                 Key: CAMEL-3018
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-3018
>             Project: Apache Camel
>          Issue Type: Bug
>            Reporter: Norman Maurer
>            Assignee: Claus Ibsen
>             Fix For: 2.5.0
>
>         Attachments: camel-pom.diff, pom.patch, pom.patch
>
>
> maven3 is a way stricter with duplicated specified dependencies, so its not possible to compile camel with it. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-3018) Building not possible with maven3

Posted by "Daniel Bevenius (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-3018?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=61474#action_61474 ] 

Daniel Bevenius commented on CAMEL-3018:
----------------------------------------

>Daniel let us know if Eclipse got smart and is capable of loading a pom.xml file.
Worked like a charm. Thanks!

> Building not possible with maven3
> ---------------------------------
>
>                 Key: CAMEL-3018
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-3018
>             Project: Apache Camel
>          Issue Type: Bug
>            Reporter: Norman Maurer
>            Assignee: Claus Ibsen
>             Fix For: 2.5.0
>
>         Attachments: camel-pom.diff, pom.patch, pom.patch
>
>
> maven3 is a way stricter with duplicated specified dependencies, so its not possible to compile camel with it. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CAMEL-3018) Building not possible with maven3

Posted by "Daniel Bevenius (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-3018?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Bevenius updated CAMEL-3018:
-----------------------------------

    Attachment: pom.patch

Patch for parent/pom.xml

> Building not possible with maven3
> ---------------------------------
>
>                 Key: CAMEL-3018
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-3018
>             Project: Apache Camel
>          Issue Type: Bug
>            Reporter: Norman Maurer
>            Assignee: Claus Ibsen
>             Fix For: 2.5.0
>
>         Attachments: camel-pom.diff, pom.patch, pom.patch
>
>
> maven3 is a way stricter with duplicated specified dependencies, so its not possible to compile camel with it. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (CAMEL-3018) Building not possible with maven3

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-3018?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-3018.
--------------------------------

         Assignee: Claus Ibsen
    Fix Version/s: 2.5.0
       Resolution: Fixed

trunk: 981492.

Thanks Norman for the patch. I have applied it to trunk.

> Building not possible with maven3
> ---------------------------------
>
>                 Key: CAMEL-3018
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-3018
>             Project: Apache Camel
>          Issue Type: Bug
>            Reporter: Norman Maurer
>            Assignee: Claus Ibsen
>             Fix For: 2.5.0
>
>         Attachments: camel-pom.diff
>
>
> maven3 is a way stricter with duplicated specified dependencies, so its not possible to compile camel with it. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CAMEL-3018) Building not possible with maven3

Posted by "Norman Maurer (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-3018?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Norman Maurer updated CAMEL-3018:
---------------------------------

    Attachment: camel-pom.diff

This patch fix it

> Building not possible with maven3
> ---------------------------------
>
>                 Key: CAMEL-3018
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-3018
>             Project: Apache Camel
>          Issue Type: Bug
>            Reporter: Norman Maurer
>             Fix For: 2.5.0
>
>         Attachments: camel-pom.diff
>
>
> maven3 is a way stricter with duplicated specified dependencies, so its not possible to compile camel with it. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-3018) Building not possible with maven3

Posted by "Daniel Bevenius (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-3018?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=61440#action_61440 ] 

Daniel Bevenius commented on CAMEL-3018:
----------------------------------------

I'm having issues when using maven3 as well. I get the following;

c-dc9ee055:camel-web danbev$ mvn clean install
[INFO] Scanning for projects...
[INFO] snapshot org.apache.camel:camel-parent:2.5-SNAPSHOT: checking for updates from java.net.m2
[INFO] snapshot org.apache.camel:camel-parent:2.5-SNAPSHOT: checking for updates from fusesource.snapshots
[INFO] snapshot org.apache.camel:camel:2.5-SNAPSHOT: checking for updates from java.net.m2
[INFO] snapshot org.apache.camel:camel:2.5-SNAPSHOT: checking for updates from fusesource.snapshots
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   The project org.apache.camel:camel-web:2.5-SNAPSHOT (/Users/danbev/work/apache/camel/trunk/components/camel-web/pom.xml) has 1 error
[ERROR]     'repositories.repository.id' must be unique: glassfish-repo-archive -> http://maven.glassfish.org/content/groups/glassfish vs http://maven.glassfish.org/content/groups/glassfish
[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 indeed a duplicate in components/web/pom.xml (pom.patch attached). 

Using the patch I'm able to build but I get failures during the test phase which I'm looking into at the moment. 




> Building not possible with maven3
> ---------------------------------
>
>                 Key: CAMEL-3018
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-3018
>             Project: Apache Camel
>          Issue Type: Bug
>            Reporter: Norman Maurer
>            Assignee: Claus Ibsen
>             Fix For: 2.5.0
>
>         Attachments: camel-pom.diff
>
>
> maven3 is a way stricter with duplicated specified dependencies, so its not possible to compile camel with it. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-3018) Building not possible with maven3

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-3018?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=61467#action_61467 ] 

Claus Ibsen commented on CAMEL-3018:
------------------------------------

why is mvn eclipse:eclipse needed? Can't you just open a pom.xml from Eclipse? Would make more sense as maintaining the eclipse stuff is done by Eclipse itself and not from eg Camel.



> Building not possible with maven3
> ---------------------------------
>
>                 Key: CAMEL-3018
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-3018
>             Project: Apache Camel
>          Issue Type: Bug
>            Reporter: Norman Maurer
>            Assignee: Claus Ibsen
>             Fix For: 2.5.0
>
>         Attachments: camel-pom.diff, pom.patch, pom.patch
>
>
> maven3 is a way stricter with duplicated specified dependencies, so its not possible to compile camel with it. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CAMEL-3018) Building not possible with maven3

Posted by "Daniel Bevenius (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-3018?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Bevenius updated CAMEL-3018:
-----------------------------------

    Attachment:     (was: pom.patch)

> Building not possible with maven3
> ---------------------------------
>
>                 Key: CAMEL-3018
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-3018
>             Project: Apache Camel
>          Issue Type: Bug
>            Reporter: Norman Maurer
>            Assignee: Claus Ibsen
>             Fix For: 2.5.0
>
>         Attachments: camel-pom.diff
>
>
> maven3 is a way stricter with duplicated specified dependencies, so its not possible to compile camel with it. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CAMEL-3018) Building not possible with maven3

Posted by "Daniel Bevenius (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-3018?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Bevenius updated CAMEL-3018:
-----------------------------------

    Attachment: pom.patch

patch for components/camel-web/pom.xml

> Building not possible with maven3
> ---------------------------------
>
>                 Key: CAMEL-3018
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-3018
>             Project: Apache Camel
>          Issue Type: Bug
>            Reporter: Norman Maurer
>            Assignee: Claus Ibsen
>             Fix For: 2.5.0
>
>         Attachments: camel-pom.diff, pom.patch
>
>
> maven3 is a way stricter with duplicated specified dependencies, so its not possible to compile camel with it. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.