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

no child elements allowed for <javaOpts>

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.0.0.Final
    • 1.2.0.Final, 1.2.1.Final
    • Maven Plugin
    • None

      I use the wildfly maven plugin to run a embedded wildfly 8.2 for my integration tests.
      I tried to set two java properties to set set a port-offset and to open a debug socket. This is my code:

      <javaOpts>
        <javaOpt>-Djboss.socket.binding.port-offset=19</javaOpt>
        <javaOpt>-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=31339</javaOpt></javaOpts>
      

      The embedded wildfly will be started using the given port offset and the debugger socket has also been opened.
      But I got this error on the execute-commands maven goal:
      Failed to execute goal org.wildfly.plugins:wildfly-maven-plugin:1.2.1.Final:execute-commands (execute-commands) on project message-service-integration: Unable to parse configuration of mojo org.wildfly.plugins:wildfly-maven-plugin:1.2.1.Final:execute-commands: Basic element 'javaOpts' must not contain child elements

      The execution will be aborted.
      This seems to be a bug, because this already worked until version 1.1.0.Final.

            jperkins-rhn James Perkins
            peacekiller Drakon Held der Arbeit (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: