You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by madusanka <ma...@gmail.com> on 2013/09/20 14:46:02 UTC

Creating a Camel Project with customized POM

Hi all,

I created a camel project with "camel-archetype-spring" archetype to deploy
in ServiceMix 4.4.2. But the versions of all the dependencies in POM are
above that of ServiceMix. 

Example - ServiceMix camel-core version is 2.8.5 whereas the camel-core
version in POM is 2.12.0.

So I want to build a camel project that is compatible with ServiceMix 4.4.2.
How can I achieve this. Please Help

Thank you !!!



--
View this message in context: http://maven.40175.n5.nabble.com/Creating-a-Camel-Project-with-customized-POM-tp5771305.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: Creating a Camel Project with customized POM

Posted by Martin Gainty <mg...@hotmail.com>.
sounds as if your hierarchy went fubar take a look at this hierarchy for camel-archetype-spring V2.8.3
 
  <groupId>org.apache.camel</groupId>
  <artifactId>camel</artifactId>
  <version>2.8.3</version>
  <packaging>pom</packaging>
              ||
               V
<parent>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel</artifactId>
    <version>2.8.3</version>
  </parent>
  <groupId>org.apache.camel</groupId>
  <artifactId>camel-parent</artifactId>
  <version>2.8.3</version>
  <packaging>pom</packaging>
 <dependencies>
      <dependency>
        <groupId>org.apache.camel</groupId>
        <artifactId>camel-core</artifactId>
        <version>${project.version}</version>  <!-- assume 2.8.3 -->
      </dependency>
      <dependency>
        <groupId>org.apache.camel</groupId>
        <artifactId>camel-spring</artifactId>
        <version>${project.version}</version>    <!-- assume 2.8.3 -->
      </dependency>
                ||
                 V
<parent>
 <groupId>org.apache.camel</groupId>
 <artifactId>camel-parent</artifactId>
 <version>2.8.3</version>
 <relativePath>../../parent</relativePath>
</parent>
<groupId>org.apache.camel</groupId>
<artifactId>archetypes</artifactId>
<name>Camel :: Archetypes</name>
<modules>
     <module>camel-archetype-spring</module>     <!-- camel-core remains at 2.8.3 -->
               ||
                V
<parent>
 <groupId>org.apache.camel</groupId>
 <artifactId>archetypes</artifactId>
 <version>2.8.3</version>
</parent>
<groupId>org.apache.camel.archetypes</groupId>
<artifactId>camel-archetype-spring</artifactId>     <!-- camel-core remains at 2.8.3 -->
          
version 2.8.3 assigned by camel-parent is perpetuated down the hierarchy and is still 2.8.3 by the time camel-archetype-spring implements it

as a quick test do
camel-archetype-plugin_test_folder>mvn -e -X -o dependency:tree > tree.lst

camel-archetype-plugin_test_folder>cat tree.lst
 
Martin Gainty 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.

Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.

 
> Date: Fri, 20 Sep 2013 05:46:02 -0700
> From: madusankabalasooriya@gmail.com
> To: users@maven.apache.org
> Subject: Creating a Camel Project with customized POM
> 
> Hi all,
> 
> I created a camel project with "camel-archetype-spring" archetype to deploy
> in ServiceMix 4.4.2. But the versions of all the dependencies in POM are
> above that of ServiceMix. 
> 
> Example - ServiceMix camel-core version is 2.8.5 whereas the camel-core
> version in POM is 2.12.0.
> 
> So I want to build a camel project that is compatible with ServiceMix 4.4.2.
> How can I achieve this. Please Help
> 
> Thank you !!!
> 
> 
> 
> --
> View this message in context: http://maven.40175.n5.nabble.com/Creating-a-Camel-Project-with-customized-POM-tp5771305.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
 		 	   		  

Re: Creating a Camel Project with customized POM

Posted by Anders Hammar <an...@hammar.net>.
Sounds like you'd want to ask the camel people about this. This list is for
generic Maven questions.

/Anders


On Fri, Sep 20, 2013 at 2:46 PM, madusanka
<ma...@gmail.com>wrote:

> Hi all,
>
> I created a camel project with "camel-archetype-spring" archetype to deploy
> in ServiceMix 4.4.2. But the versions of all the dependencies in POM are
> above that of ServiceMix.
>
> Example - ServiceMix camel-core version is 2.8.5 whereas the camel-core
> version in POM is 2.12.0.
>
> So I want to build a camel project that is compatible with ServiceMix
> 4.4.2.
> How can I achieve this. Please Help
>
> Thank you !!!
>
>
>
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/Creating-a-Camel-Project-with-customized-POM-tp5771305.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>