<div dir="ltr"><div><div><div>I am trying to create a security domain using Jboss as Maven plugin:<br></div>I want to declare an audit provider-module inside the security domain.<br><br></div>I tried the following execution on maven:<br>
<br> <execution><br> <id>PAEPolicy</id><br> <phase>package</phase><br> <goals><goal>add-resource</goal></goals><br>
<configuration><br> <address>subsystem=security</address><br> <force>true</force><br> <resources><br>
<resource><br> <address>security-domain=MyApplicationPAE</address><br> <properties><br> <cache-type>default</cache-type><br>
</properties><br> <resources><br> <resource><br> <address>authentication=classic</address><br>
<properties><br> <login-modules>!![{"code"=>"br.jus.tst.security.TSTLoginModule","flag"=>"required","module-options"=>[<br>
("debug"=>"true"),<br> ("dburl"=>""),<br> ("schema"=>"PSSL"),<br>
("system"=>"PE"),<br> ("jboss"=>"true")]}]<br> </login-modules><br>
</properties><br> </resource><br> <resource><br> <address>audit</address><br>
<properties><br> <provider-modules>!![{"code"=>"br.jus.tst.security.TSTLoginModule","flag"=>"required","module-options"=>[<br>
("debug"=>"true"),<br> ("dburl"=>""),<br> ("schema"=>"PSSL"),<br>
("system"=>"PE"),<br> ("jboss"=>"true")]}]</provider-modules><br>
</properties><br>
</resource><br> </resources><br> </resource><br> </resources><br>
</configuration><br> </execution><br> <execution><br><br></div>The execution failed and showed the message:<br>[ERROR] Failed to execute goal org.jboss.as.plugins:jboss-as-maven-plugin:7.4.Final:add-resource (PAEPolicy) on project jboss-as-7.1.1.Final: Could not execute goal add-resource. Reason: audit is not a valid address segment -> [Help 1]<br>
<div><div><div><div><br></div><div>May someone explain me how to do this?<br><br></div><div><br clear="all"><div><div>---------------------------------------------------------------------------------------------------------------------<br>
Gustavo Henrique Orair<br> Mestre em Ciência da Computação - MSc in Computer Science <br> Universidade Federal de Minas Gerais<br> Celular/Cell phone: 55-61-83209196<br>
------------------------------------------------------------------------------------------------------------------</div>
</div></div></div></div></div></div>