Uploaded image for project: 'ServiceMix'
  1. ServiceMix
  2. SM-1943

jbi-maven-plugin does not process a jbi-services.xml file that has a comment node as the first root node

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.2.1, jbi-maven-plugin-4.3, jbi-maven-plugin-4.4
    • jbi-maven-plugin-4.4
    • tooling
    • None
    • Linux jdk1.6

    • Patch Available

    Description

      The jbi-maven-plugin is supposed to generate a jbi.xml file by analyzing a jbi-services.xml if one is present. If the structure of the file does not have the <services> node as the first child node, then the analysis fails and no service details are discovered.

      In my file, we add a comment node before the services node, and that breaks the file analysis.
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
      <!--
      ========================================================================
      Some Copyright and description text
      ========================================================================
      -->
      <services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns="http://java.sun.com/xml/ns/jbi"
      xmlns:wf="http://www.novell.com/provisioning/service">
      <provides service-name="wf:ProvisioningService"
      interface-name="wf:Provisioning"
      endpoint-name="WFServiceEngine_JBIPort" />
      </services>

      Attachments

        1. jbi-maven-plugin-r938128.txt
          6 kB
          Lyndon Washington

        Activity

          People

            ccustine Chris Custine
            hoshposh Lyndon Washington
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: