Hi I'm trying to include sso.agent jar into AS build (webapp mgt feature) so that it will be available into the build. But since the agent depends on other jars it complains at p2 profile gen.
Following are the two dependencies <groupId>org.openid4java.wso2</groupId> <artifactId>openid4java-nodeps</artifactId> and <groupId>xerces.wso2</groupId> <artifactId>xercesImpl</artifactId> If I include xercesImpl jar into the feature server won't even start. Hence I tried a alternative method. Modified the sso agent to use those dependencies as optional. --- a/components/agents/org.wso2.carbon.identity.sso.agent/pom.xml +++ b/components/agents/org.wso2.carbon.identity.sso.agent/pom.xml @@ -90,10 +90,10 @@ javax.xml.parsers, com.google.gson;version="${com.google.code.gson.osgi.version.range}", org.apache.http.conn.ssl; version="${httpcomponents-httpclient.imp.pkg.version.range}", - org.apache.xerces.util, + org.apache.xerces.util;resolution:=optional, org.apache.xml.security.*; version="${wss4j.xml.security.imp.pkg.version.range}", org.joda.time;version="${opensaml2.wso2.osgi.version.range}", - org.openid4java.*;version="${openid4java.wso2.osgi.version.range}", + org.openid4java.*;version="${openid4java.wso2.osgi.version.range}";resolution:=optional, org.opensaml.*; version="${opensaml2.wso2.osgi.version.range}", org.w3c.dom.*, After this I can build and run the server successfully. But we would need a release for carbonn-identity for this in order to go with this approach. Let's discuss the options. Also let me know if there are alternatives. p.s: I tried to exclude dependencies in the feature level, but that doesn't work. thanks, -- Supun Malinga, Senior Software Engineer, WSO2 Inc. http://wso2.com email: sup...@wso2.com <sup...@wso2.com> mobile: +94 (0)71 56 91 321
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev