[jboss-jira] [JBoss JIRA] (JBASMP-75) serverConfig should accept arbitrary paths

James Perkins (JIRA) issues at jboss.org
Fri Nov 14 14:19:29 EST 2014


     [ https://issues.jboss.org/browse/JBASMP-75?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Perkins closed JBASMP-75.
-------------------------------
    Resolution: Rejected


The server requires the configuration to be in the configuration directory. It's a limitation on the server not the maven plugin. If you specify the {{jboss.server.config.dir}} that points to {{src/test/resources}} should work though. One thing to note about that approach is a {{logging.properties}} would likely be written there as well.

> serverConfig should accept arbitrary paths
> ------------------------------------------
>
>                 Key: JBASMP-75
>                 URL: https://issues.jboss.org/browse/JBASMP-75
>             Project: JBoss AS Maven Plugins
>          Issue Type: Bug
>          Components: wildfly
>         Environment: wildfly-maven-plugin 1.0.2.Final, WildFly 8.1.0.Final
>            Reporter: Harald Wellmann
>            Assignee: James Perkins
>
> The {{serverConfig}} Mojo parameter is described as
> {quote}
> The path to the server configuration to use.
> {quote}
> However, when specifying a path like
> {code:xml}
> <serverConfig>src/test/resouces/standalone-test.xml</serverConfig>
> {code}
> there is an exception 
> {noformat}
> java.lang.IllegalStateException: JBAS014805: Could not get main file: ... Specified files must be relative to the configuration dir: ...
> {noformat}
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.8#6338)


More information about the jboss-jira mailing list