[jboss-jira] [JBoss JIRA] (WFLY-8969) wildfly-maven-plugin start stand alone instance with basedir different than standalone folder not working

Nuno Godinho de Matos (JIRA) issues at jboss.org
Tue Jun 20 11:47:00 EDT 2017


Nuno Godinho de Matos created WFLY-8969:
-------------------------------------------

             Summary: wildfly-maven-plugin start stand alone  instance with basedir different than standalone folder not working
                 Key: WFLY-8969
                 URL: https://issues.jboss.org/browse/WFLY-8969
             Project: WildFly
          Issue Type: Bug
          Components: Application Client
    Affects Versions: 10.0.0.Final
         Environment: Windows 7 using wildfly 10.0.0.Final and the latest version of the wildfly-maven-plugin
            Reporter: Nuno Godinho de Matos
            Assignee: Stuart Douglas
            Priority: Minor


Hi.

So far, I have not been successfuly having the wildfly maven plugin behave as the standalone.bat script, and use it to startup any standalone server whose base dir is not the "standalone" base dir folder itself.

I believe the maven plugin is forcincing the convention that the stanadlone base dire has to be the standalone folder withing the wildfly home.

Here is an example.
If I am located at my WILDFLY_HOME\bin, I can trigger the following command line call to start up the appropriate standlone base dir with the appropriate configuration.

standalone.bat --server-config=standalone-empty.xml -Djboss.server.base.dir=C:\dev\Widlfly10\wildfly-10.0.0.Final\standalone-cli

On the other hand, If I were to try to the same thing using the maven plugin, I would be forced to run a "dirty command" (look at the relative path I am doing to access the configuration file) such as the following:

mvn org.wildfly.plugins:wildfly-maven-plugin:1.2.0.Alpha5:start -Dwildfly.server.type=STANDALONE  -Djboss-as.home=C:\dev\Widlfly10\wildfly-10.0.0.Final -Dwildfly.serverArgs="-Djboss.server.base.dir=C:/dev/Widlfly10/wildfly-10.0.0.Final/standalone-cli" -Dwildfly.serverConfig=../../standalone-cli/configuration/standalone-empty.xml 


The server starts up, but I can clearly see in jvisualvm that the base dir continues to be standalone folder.

However, if I play with the value I am setting on the -Djboss.server.base.dir= and I write the value something that is an invalid path, then I correctly get an error telling me that my folder is invalid.

This problem is also explained on the following stack over flow thread.
https://stackoverflow.com/questions/44654819/wildfly-maven-plugin-is-there-a-way-to-specify-the-jboss-server-base-dir

Am I making some sort of mistake on my configuration?
Or is there a bug in the plugin and a fix should be added to ensure that asking the pluging to start a standalone server with a different base directory is working properly?

My Kindest regards.





--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jboss-jira mailing list