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

karaf-maven-plugin: feature XML with a @ character

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.0.0, 4.0.1
    • 4.0.2
    • karaf
    • None

    Description

      The feature XML generation fails if the source feature XML contains a @ (e.g. in the comment).
      This is very annoying if your project is using the a maven license plugin and the license contains an email address of your company.

      The current mechanism does replace ${...} and @...@ in the XML.
      IMHO we should drop the @...@ support, so we could use email addresses in comments (e.g. licenses).

      The problem could be reproduced using the "normal" output of the feature archetype.
      Add a @ to the license header of the "src/main/feature/feature.xml" and run a "mvn clean install".

      The result looks like:
      <pre>
      <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
      <features xmlns="http://karaf.apache.org/xmlns/features/v1.3.0" name="${project.artifactId}-${project.version}">
      <feature name="${project.artifactId}" description="${project.name}" version="0.0.0._project_version">
      <details>${project.description}</details>
      </feature>
      </features>
      </pre>

      Attachments

        Activity

          People

            jbonofre Jean-Baptiste Onofré
            maggu2810 Markus Rathgeb
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: