Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-5113

leading spaces in karaf features.xml bundle elements lead to errors when using karaf 3.0.0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.7.5
    • 2.7.6
    • OSGi
    • None
    • Unknown

    Description

      When using CXF 2.7.5 with Karaf 3.0.0RC1 I get the following error:

      [ERROR] Failed to execute goal
      org.apache.karaf.tooling:karaf-maven-plugin:3.0.0.RC1:install-kars
      (default-install-kars) on project reva-distribution: Execution
      default-install-kars of goal
      org.apache.karaf.tooling:karaf-maven-plugin:3.0.0.RC1:install-kars
      failed: Bad artifact coordinates
      mvn:org.apache.httpcomponents/httpcore-osgi/4.2.2, expected format is
      <groupId>:<artifactId>[:<extension>[:<classifier>]]:<version> -> [Help 1]

      It appeared the specified artifact was incorrectly specified (leading space) in the CXF features.xml. Correcting it manually in my local maven repo correctly this flaw.

      Looking at CXF trunk (r1500679) I noticed the specified bundle no longer had a space. However other bundles still had. The accompanying patch corrects this flaw.

      Attachments

        1. jira-5113.patch
          1 kB
          Minto van der Sluis

        Activity

          People

            dkulp Daniel Kulp
            misl Minto van der Sluis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: