Uploaded image for project: 'JBoss AS Maven Plugins'
  1. JBoss AS Maven Plugins
  2. JBASMP-75

serverConfig should accept arbitrary paths

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Rejected
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: wildfly
    • Labels:
      None

      Description

      The serverConfig Mojo parameter is described as

      The path to the server configuration to use.

      However, when specifying a path like

      <serverConfig>src/test/resouces/standalone-test.xml</serverConfig>
      

      there is an exception

      java.lang.IllegalStateException: JBAS014805: Could not get main file: ... Specified files must be relative to the configuration dir: ...
      

      This is inconvenient. Users should be able to override the default configurations from a WildFly distribution. E.g. the wildfly-maven-plugin could simply copy the file specified in serverConfig to $JBOSS_HOME/standalone/configuration.

      As a workaround, I now unpack WildFly with the maven-dependency-plugin, copy my configuration with maven-resources-plugin and add the jbossHome parameter to wildfly-maven-plugin, all of which is rather verbose.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                jamezp James Perkins
                Reporter:
                hwellmann.de Harald Wellmann
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: