Uploaded image for project: 'WildFly Maven Plugin'
  1. WildFly Maven Plugin
  2. WFMP-248

The packaging goal example has a confusing configuration example

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • 5.0.1.Final
    • None
    • Documentation
    • None

      The package example has an example of the packaging-scripts that looks like:

      <packaging-scripts>
          <!-- Commands and scripts are executed in the context of an embedded-server. 
          You don't need to start and stop the embedded-server. -->
          <execution>
              <!-- List of commands -->
              <commands>
                  <command>/system-property=org.jboss.example.runtime:write-attribute(name=dev)</command>
                  <command>/system-property=org.jboss.example.runtime2:write-attribute(name=dev2)</command>
              </commands>
              <!-- Properties files containing System Properties to resolve expressions -->
              <properties-files>
                  <file>cli.properties</file>
              </properties-files>
              <!-- Enable expression resolution prior to send the commands to the server, false by default -->
              <resolve-expressions>true</resolve-expressions>
              <!-- List of CLI script files -->
              <scripts>
                  <script>config.cli</script>
                  <script>config2.cli</script>
              </scripts>
          </execution>
      </packaging-scripts>
      

      Note the configuration the array element is named execution which works as Maven is not picky what you name an array element. However, it looks confusing and should likely be named packaging-script to ensure users know it needs to be wrapped.

              jperkins-rhn James Perkins
              jperkins-rhn James Perkins
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: