-
Task
-
Resolution: Done
-
Major
-
None
-
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.