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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0.0, 4.0.1
    • Fix Version/s: 4.0.2
    • Component/s: karaf
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: