2 Replies Latest reply on May 6, 2016 5:46 AM by Colin Negrow

    Setting system parameter in wildfly-maven-plugin - help needed

    Colin Negrow Newbie

      Hi,


      I have below wildfly-maven-plugin config and I need to set log4j.configuration system parameter. Each developer has different ${project.basedir} folder thats why it is a property which is resolved by maven during build and provides required system property for log4j mechanism.

      I use 1.0.0.Final version of the plugin.


      
      
      <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>
        <executeCommands>/system-property=log4j.configuration:write-attribute(name="value", value="file:${project.basedir}/src/resources/log4j.properties")
         </executeCommands>
        </configuration>
      </plugin>
      
      
      
      
      
      
      


      Unfortunatelly this parameter is not set..


      Just remember to change

      <jbossHome>${jboss.home}</jbossHome>
      
      
      

      to correct path and

      <jboss.home>yourpath\wildfly-9.0.2.Final</jboss.home>
      
      
      


      Aby help would be appreciated.