Uploaded image for project: 'JGroups'
  1. JGroups
  2. JGRP-2993

The jgroups-<version>.xsd schema file is not generated during the Maven build and therefore not included in the deployed jgroups.jar

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 5.5.4
    • 5.5.1, 5.5.2, 5.5.3
    • None

      In the maven-antrun-plugin configuration in pom.xml, the JVM system property -Dlog4j2.disable.jmx=true is incorrectly passed via <arg line> instead of <jvmarg>. This causes it to be passed as an argument to XMLSchemaGenerator.main(String[] args) rather than to the JVM.

      The argument parser in XMLSchemaGenerator.main() only recognizes -o. When it encounters -Dlog4j2.disable.jmx=true as the first argument, it prints the usage message and returns immediately — before the schema file is written.

      As a result, target/schema/ only contains fork-stacks.xsd and relay.xsd (which are copied from conf/), but the generated jgroups-<version>.xsd is missing.

              rhn-engineering-rhusar Radoslav Husar
              rhn-engineering-rhusar Radoslav Husar
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: