This repository was archived by the owner on Nov 18, 2021. It is now read-only.
This repository was archived by the owner on Nov 18, 2021. It is now read-only.
Support for executing commands on the server #9
Closed
Description
This is the last thing I need from DeployWildflyTask to remove the maven files from my build.
I have this fragment on my pom.xml
<build>
<plugins>
<plugin>
<groupId>org.wildfly.plugins</groupId>
<artifactId>wildfly-maven-plugin</artifactId>
<version>${wildfly.maven.plugin.version}</version>
<configuration>
<username>${user}</username>
<password>${password}</password>
<scripts>
<script>config.cli</script>
</scripts>
</configuration>
</plugin>
</plugins>
</build>
And the config.cli file has something like this
/subsystem=naming/binding=java\:global\/server.jndi.host:add(binding-type=simple, type=java.lang.String, value="10.0.16.3")
/subsystem=naming/binding=java\:global\/server.jndi.port:add(binding-type=simple, type=java.lang.String, value="9201")
This is the goal used in my build:
https://docs.jboss.org/wildfly/plugins/maven/latest/execute-commands-mojo.html