This content has been marked as final.
Show 2 replies
-
1. Re: Setting system parameter in wildfly-maven-plugin - help needed
jamezp May 5, 2016 8:06 PM (in response to haiaw)You would have to start the container and execute the execute-commands goal in order for that system property to be added. Also your configurations is not definied correctly. See WildFly Maven Plugin – Execute Commands Example for details.
mvn wildfly:start wildfly:execute-commands wildfly:shutdown
Another option would be to use the <before-deployment> command option which the run goal and deploy goal use.
<plugin> <groupId>org.wildfly.plugins</groupId> <artifactId>wildfly-maven-plugin</artifactId> <version>${version.wildfly.maven.plugin}</version> <configuration> <jbossHome>${jboss.home}</jbossHome> <serverConfig>${server.config}</serverConfig> <before-deployment> <commands> <command>/system-property=log4j.configuration:write-attribute(name="value", value="file:${project.basedir}/src/resources/log4j.properties")</command> </commands> </before-deployment> </configuration> </plugin>
--
James R. Perkins
-
2. Re: Setting system parameter in wildfly-maven-plugin - help needed
haiaw May 6, 2016 5:46 AM (in response to jamezp)Thanks, works now