Camel
  1. Camel
  2. CAMEL-1526

Add a ServiceMix Kernel features descriptor to Camel

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-M1
    • Fix Version/s: 1.6.1, 2.0-M2
    • Component/s: None
    • Labels:
      None

      Description

      ServiceMix 4 already ships with a features descriptor for Apache Camel, but it would be better if Camel itself could provide the descriptor instead.
      Cfr. http://cwiki.apache.org/SM/discussion-forums.html#nabble-td22832099|a22843269

        Issue Links

          Activity

          Hide
          Gert Vanthienen added a comment -

          Trying to streamline the use of dependencies to allow the features-maven-plugin to find more bundles automatically or to ensure that the same version is used in ServiceMix Kernel and when running Camel on its own.

          Updating Scala to 2.7.3 is the first one, but I guess there will be a few more to come.

          Show
          Gert Vanthienen added a comment - Trying to streamline the use of dependencies to allow the features-maven-plugin to find more bundles automatically or to ensure that the same version is used in ServiceMix Kernel and when running Camel on its own. Updating Scala to 2.7.3 is the first one, but I guess there will be a few more to come.
          Hide
          Gert Vanthienen added a comment -

          Initial commit for trunk in http://svn.apache.org/viewvc?view=rev&revision=766016
          The list of components reflects those available in 1.6, so I'll backport this first before adding the new 2.0 components.

          Show
          Gert Vanthienen added a comment - Initial commit for trunk in http://svn.apache.org/viewvc?view=rev&revision=766016 The list of components reflects those available in 1.6, so I'll backport this first before adding the new 2.0 components.
          Hide
          Gert Vanthienen added a comment -
          Show
          Gert Vanthienen added a comment - Backported to Camel 1.x branch in http://svn.apache.org/viewvc?view=rev&revision=766118
          Hide
          Claus Ibsen added a comment -

          I get this build error on trunk today this morning after upgrading the Nexus 1.3.3

          Running mvn clean install in the root folder.

          [INFO] ------------------------------------------------------------------------
          [ERROR] BUILD ERROR
          [INFO] ------------------------------------------------------------------------
          [INFO] Failed to resolve artifact.
          
          GroupId: org.ops4j.pax.url
          ArtifactId: pax-url-mvn
          Version: 0.3.3
          
          Reason: Unable to download the artifact from any repository
          
          Try downloading the file manually from the project website.
          
          Then, install it using the command: 
              mvn install:install-file -DgroupId=org.ops4j.pax.url -DartifactId=pax-url-mvn -Dversion=0.3.3 -Dpackaging=jar -Dfile=/path/to/file
          
          Alternatively, if you host your own repository you can deploy the file there: 
              mvn deploy:deploy-file -DgroupId=org.ops4j.pax.url -DartifactId=pax-url-mvn -Dversion=0.3.3 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
          
          Path to dependency: 
                  1) org.apache.camel.karaf:features:pom:2.0-SNAPSHOT
                  2) org.apache.servicemix.kernel:apache-servicemix-kernel:pom:1.1.0
                  3) org.ops4j.pax.url:pax-url-mvn:jar:0.3.3
          
          
            org.ops4j.pax.url:pax-url-mvn:jar:0.3.3
          
          from the specified remote repositories:
            servicemix-m2-repo (http://svn.apache.org/repos/asf/servicemix/m2-repo/),
            apache.snapshots (http://repository.apache.org/snapshots),
            com.springsource.repository.bundles.external (http://repository.springsource.com/maven/bundles/external),
            uface.m2 (http://uface.googlecode.com/svn/maven/),
            Nexus (http://localhost:8081/nexus/content/groups/public),
            open.iona.m2 (http://repo.open.iona.com/maven2)
          
          Show
          Claus Ibsen added a comment - I get this build error on trunk today this morning after upgrading the Nexus 1.3.3 Running mvn clean install in the root folder. [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to resolve artifact. GroupId: org.ops4j.pax.url ArtifactId: pax-url-mvn Version: 0.3.3 Reason: Unable to download the artifact from any repository Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.ops4j.pax.url -DartifactId=pax-url-mvn -Dversion=0.3.3 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.ops4j.pax.url -DartifactId=pax-url-mvn -Dversion=0.3.3 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) org.apache.camel.karaf:features:pom:2.0-SNAPSHOT 2) org.apache.servicemix.kernel:apache-servicemix-kernel:pom:1.1.0 3) org.ops4j.pax.url:pax-url-mvn:jar:0.3.3 org.ops4j.pax.url:pax-url-mvn:jar:0.3.3 from the specified remote repositories: servicemix-m2-repo (http: //svn.apache.org/repos/asf/servicemix/m2-repo/), apache.snapshots (http: //repository.apache.org/snapshots), com.springsource.repository.bundles.external (http: //repository.springsource.com/maven/bundles/external), uface.m2 (http: //uface.googlecode.com/svn/maven/), Nexus (http: //localhost:8081/nexus/content/groups/ public ), open.iona.m2 (http: //repo.open.iona.com/maven2)
          Hide
          Gert Vanthienen added a comment -

          Claus, thanks for signaling this! Added the missing repo in trunk and branch, so the build should be OK again.

          Show
          Gert Vanthienen added a comment - Claus, thanks for signaling this! Added the missing repo in trunk and branch, so the build should be OK again.
          Hide
          Claus Ibsen added a comment -

          Gert, now I get this build error

          [INFO] ------------------------------------------------------------------------
          [INFO] Building Camel :: Platforms :: Apache Karaf :: Features
          [INFO]    task-segment: [clean, install]
          [INFO] ------------------------------------------------------------------------
          
          ...
          
          [ERROR] BUILD ERROR
          [INFO] ------------------------------------------------------------------------
          [INFO] Failed to resolve artifact.
          
          GroupId: org.springframework.osgi
          ArtifactId: spring-osgi-extender
          Version: 1.2.0-m2
          
          Reason: Unable to download the artifact from any repository
          
          Try downloading the file manually from the project website.
          
          Then, install it using the command: 
              mvn install:install-file -DgroupId=org.springframework.osgi -DartifactId=spring-osgi-extender -Dversion=1.2.0-m2 -Dpackaging=jar -Dfile=/path/to/file
          
          Alternatively, if you host your own repository you can deploy the file there: 
              mvn deploy:deploy-file -DgroupId=org.springframework.osgi -DartifactId=spring-osgi-extender -Dversion=1.2.0-m2 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
          
          Path to dependency: 
                  1) org.apache.camel.karaf:features:pom:2.0-SNAPSHOT
                  2) org.apache.servicemix.kernel:apache-servicemix-kernel:pom:1.1.0
                  3) org.apache.servicemix.kernel.gshell:org.apache.servicemix.kernel.gshell.osgi:jar:1.1.0
          
          
            org.springframework.osgi:spring-osgi-extender:jar:1.2.0-m2
          
          from the specified remote repositories:
            servicemix-m2-repo (http://svn.apache.org/repos/asf/servicemix/m2-repo/),
            apache.snapshots (http://repository.apache.org/snapshots),
            com.springsource.repository.bundles.external (http://repository.springsource.com/maven/bundles/external),
            uface.m2 (http://uface.googlecode.com/svn/maven/),
            Nexus (http://localhost:8081/nexus/content/groups/public),
            ops4j (http://repository.ops4j.org/maven2),
            open.iona.m2 (http://repo.open.iona.com/maven2)
          

          I would assume the Spring OSGI stuff has been released as 1.2.0 final.

          Show
          Claus Ibsen added a comment - Gert, now I get this build error [INFO] ------------------------------------------------------------------------ [INFO] Building Camel :: Platforms :: Apache Karaf :: Features [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ ... [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to resolve artifact. GroupId: org.springframework.osgi ArtifactId: spring-osgi-extender Version: 1.2.0-m2 Reason: Unable to download the artifact from any repository Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.springframework.osgi -DartifactId=spring-osgi-extender -Dversion=1.2.0-m2 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.springframework.osgi -DartifactId=spring-osgi-extender -Dversion=1.2.0-m2 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) org.apache.camel.karaf:features:pom:2.0-SNAPSHOT 2) org.apache.servicemix.kernel:apache-servicemix-kernel:pom:1.1.0 3) org.apache.servicemix.kernel.gshell:org.apache.servicemix.kernel.gshell.osgi:jar:1.1.0 org.springframework.osgi:spring-osgi-extender:jar:1.2.0-m2 from the specified remote repositories: servicemix-m2-repo (http: //svn.apache.org/repos/asf/servicemix/m2-repo/), apache.snapshots (http: //repository.apache.org/snapshots), com.springsource.repository.bundles.external (http: //repository.springsource.com/maven/bundles/external), uface.m2 (http: //uface.googlecode.com/svn/maven/), Nexus (http: //localhost:8081/nexus/content/groups/ public ), ops4j (http: //repository.ops4j.org/maven2), open.iona.m2 (http: //repo.open.iona.com/maven2) I would assume the Spring OSGI stuff has been released as 1.2.0 final.
          Hide
          Claus Ibsen added a comment -

          gertv I cleaned my local repo today and did a mvn clean install -Dtest=false and now get this error

          [INFO] ------------------------------------------------------------------------
          [ERROR] BUILD ERROR
          [INFO] ------------------------------------------------------------------------
          [INFO] Failed to resolve artifact.
          
          GroupId: org.springframework.osgi
          ArtifactId: spring-osgi-extender
          Version: 1.2.0-m2
          
          Reason: Unable to download the artifact from any repository
          
          Try downloading the file manually from the project website.
          
          Then, install it using the command: 
              mvn install:install-file -DgroupId=org.springframework.osgi -DartifactId=spring-osgi-extender -Dversion=1.2.0-m2 -Dpackaging=jar -Dfile=/path/to/file
          
          Alternatively, if you host your own repository you can deploy the file there: 
              mvn deploy:deploy-file -DgroupId=org.springframework.osgi -DartifactId=spring-osgi-extender -Dversion=1.2.0-m2 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
          
          Path to dependency: 
                  1) org.apache.camel.karaf:features:pom:2.0-SNAPSHOT
                  2) org.apache.servicemix.kernel:apache-servicemix-kernel:pom:1.1.0
                  3) org.apache.servicemix.kernel.gshell:org.apache.servicemix.kernel.gshell.osgi:jar:1.1.0
          
          
            org.springframework.osgi:spring-osgi-extender:jar:1.2.0-m2
          
          from the specified remote repositories:
            servicemix-m2-repo (http://svn.apache.org/repos/asf/servicemix/m2-repo/),
            apache.snapshots (http://repository.apache.org/snapshots),
            com.springsource.repository.bundles.external (http://repository.springsource.com/maven/bundles/external),
            uface.m2 (http://uface.googlecode.com/svn/maven/),
            Nexus (http://localhost:8081/nexus/content/groups/public),
            ops4j (http://repository.ops4j.org/maven2),
            open.iona.m2 (http://repo.open.iona.com/maven2)
          
          Show
          Claus Ibsen added a comment - gertv I cleaned my local repo today and did a mvn clean install -Dtest=false and now get this error [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to resolve artifact. GroupId: org.springframework.osgi ArtifactId: spring-osgi-extender Version: 1.2.0-m2 Reason: Unable to download the artifact from any repository Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.springframework.osgi -DartifactId=spring-osgi-extender -Dversion=1.2.0-m2 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.springframework.osgi -DartifactId=spring-osgi-extender -Dversion=1.2.0-m2 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) org.apache.camel.karaf:features:pom:2.0-SNAPSHOT 2) org.apache.servicemix.kernel:apache-servicemix-kernel:pom:1.1.0 3) org.apache.servicemix.kernel.gshell:org.apache.servicemix.kernel.gshell.osgi:jar:1.1.0 org.springframework.osgi:spring-osgi-extender:jar:1.2.0-m2 from the specified remote repositories: servicemix-m2-repo (http: //svn.apache.org/repos/asf/servicemix/m2-repo/), apache.snapshots (http: //repository.apache.org/snapshots), com.springsource.repository.bundles.external (http: //repository.springsource.com/maven/bundles/external), uface.m2 (http: //uface.googlecode.com/svn/maven/), Nexus (http: //localhost:8081/nexus/content/groups/ public ), ops4j (http: //repository.ops4j.org/maven2), open.iona.m2 (http: //repo.open.iona.com/maven2)
          Hide
          Charles Moulliard added a comment -

          @Hi,

          Version 1.2.0-m2 of the interfact must be changed to 1.2.0 since the official launch of Spring OSG 1.2.0

          Charles

          Show
          Charles Moulliard added a comment - @Hi, Version 1.2.0-m2 of the interfact must be changed to 1.2.0 since the official launch of Spring OSG 1.2.0 Charles
          Hide
          Gert Vanthienen added a comment -

          Switched to using simple Maven resource filtering in http://svn.eu.apache.org/viewvc?view=rev&revision=769346
          and backported that to Camel 1.x in http://svn.eu.apache.org/viewvc?view=rev&revision=769351

          Once SMX4KNL-272 is resolved, we should be able to validate the features.xml file using the plugin so it becomes a bit easier to maintain it over time.

          Show
          Gert Vanthienen added a comment - Switched to using simple Maven resource filtering in http://svn.eu.apache.org/viewvc?view=rev&revision=769346 and backported that to Camel 1.x in http://svn.eu.apache.org/viewvc?view=rev&revision=769351 Once SMX4KNL-272 is resolved, we should be able to validate the features.xml file using the plugin so it becomes a bit easier to maintain it over time.
          Hide
          Claus Ibsen added a comment -

          Closing all 2.0M2 tickets

          Show
          Claus Ibsen added a comment - Closing all 2.0M2 tickets

            People

            • Assignee:
              Gert Vanthienen
              Reporter:
              Gert Vanthienen
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development