Hi All, I have a requirement to comment out the below element in identity.xml when building the micro-gateway distribution.
<Server xmlns="http://wso2.org/projects/carbon/carbon.xml"> <OAuth> <!-- Scope validators list. The validators registered here wil be executed during token validation. --> <ScopeValidators> <ScopeValidator class="org.wso2.carbon.identity.oauth2.validators.JDBCScopeValidator"/> <ScopeValidator class="org.wso2.carbon.identity.oauth2.validators.XACMLScopeValidator"/> </ScopeValidators> </OAuth> </Server> I tried using the maven replacer plugin by adding a configuration as below, but it didn't work as it replaced the value of the class attribute with an empty string. <configuration> <file>${basedir}/../../p2-profile/micro-gateway/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/identity/identity.xml</file> <replacements> <replacement> <xpath>/Server/OAuth/ScopeValidators</xpath> <token>(org.wso2.carbon.identity.oauth2.validators.XACMLScopeValidator)</token> <value></value> </replacement> </replacements> </configuration> Does anyone know how to get this done using the replacer plugin or any other plugin? Thanks, Naduni -- *Naduni Pamudika* Software Engineer | WSO2 Mobile: +94 719 143658 <+94%2071%20914%203658> [image: http://wso2.com/signature] <http://wso2.com/signature>
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
