Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-472

features-maven-plugin: TAB-characters in feature-repository lead to resolution-errors in add-features-to-repo

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.4, 2.2.0, 3.0.0
    • 2.1.5, 2.2.0, 3.0.0
    • karaf
    • None

    Description

      The "add-features-to-repo"-goal of the features-maven-plugin seems to have problems with tab-characters in feature-repositories (like in the standard-feature http).
      If there is a tab in the bundle-definition-line it gets somehow appended to the version and artifact-name so the bundle could not be resolved.

      Here an example of the plugin-output:
      Downloading: http://maven-repo/nexus/content/groups/public/org/eclipse/jetty/jetty-io/7.2.2.v20101205 /jetty-io-7.2.2.v20101205 .jar
      Actually in source it is: " ...... jetty-io/7.2.2.v20101205<tab><tab>/jetty-io-7.2.2.v20101205<tab><tab>.jar"

      Adding '.replace("\t","")' in MojoSupport.bundleToArtifact() fixed the problem for me, but I'm not sure if there are still other issues with Tab-characters.

      Attachments

        Activity

          People

            pieber Andreas Pieber
            uwek Uwe Korte
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: