<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>                    &lt;execution&gt;<br>                        &lt;id&gt;PAEPolicy&lt;/id&gt;<br>                        &lt;phase&gt;package&lt;/phase&gt;<br>                        &lt;goals&gt;&lt;goal&gt;add-resource&lt;/goal&gt;&lt;/goals&gt;<br>

                        &lt;configuration&gt;<br>                            &lt;address&gt;subsystem=security&lt;/address&gt;<br>                            &lt;force&gt;true&lt;/force&gt;<br>                            &lt;resources&gt;<br>

                                &lt;resource&gt;<br>                                    &lt;address&gt;security-domain=MyApplicationPAE&lt;/address&gt;<br>                                    &lt;properties&gt;<br>                                        &lt;cache-type&gt;default&lt;/cache-type&gt;<br>

                                    &lt;/properties&gt;<br>                                    &lt;resources&gt;<br>                                        &lt;resource&gt;<br>                                            &lt;address&gt;authentication=classic&lt;/address&gt;<br>

                                            &lt;properties&gt;<br>                                                &lt;login-modules&gt;!![{&quot;code&quot;=&gt;&quot;br.jus.tst.security.TSTLoginModule&quot;,&quot;flag&quot;=&gt;&quot;required&quot;,&quot;module-options&quot;=&gt;[<br>

                                                    (&quot;debug&quot;=&gt;&quot;true&quot;),<br>                                                    (&quot;dburl&quot;=&gt;&quot;&quot;),<br>                                                    (&quot;schema&quot;=&gt;&quot;PSSL&quot;),<br>

                                                    (&quot;system&quot;=&gt;&quot;PE&quot;),<br>                                                    (&quot;jboss&quot;=&gt;&quot;true&quot;)]}]<br>                                                &lt;/login-modules&gt;<br>

                                            &lt;/properties&gt;<br>                                        &lt;/resource&gt;<br>                                        &lt;resource&gt;<br>                                            &lt;address&gt;audit&lt;/address&gt;<br>

                                            &lt;properties&gt;<br>                                                &lt;provider-modules&gt;!![{&quot;code&quot;=&gt;&quot;br.jus.tst.security.TSTLoginModule&quot;,&quot;flag&quot;=&gt;&quot;required&quot;,&quot;module-options&quot;=&gt;[<br>

                                                    (&quot;debug&quot;=&gt;&quot;true&quot;),<br>                                                    (&quot;dburl&quot;=&gt;&quot;&quot;),<br>                                                    (&quot;schema&quot;=&gt;&quot;PSSL&quot;),<br>

                                                    (&quot;system&quot;=&gt;&quot;PE&quot;),<br>                                                    (&quot;jboss&quot;=&gt;&quot;true&quot;)]}]&lt;/provider-modules&gt;<br>
                                            &lt;/properties&gt;<br>
                                        &lt;/resource&gt;<br>                                    &lt;/resources&gt;<br>                                &lt;/resource&gt;<br>                            &lt;/resources&gt;<br>

                        &lt;/configuration&gt;<br>                    &lt;/execution&gt;<br>                    &lt;execution&gt;<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 -&gt; [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>