From fae2a540601fc605cee60a04b36a85bbd4197bb6 Mon Sep 17 00:00:00 2001 From: senthalan Date: Mon, 5 Aug 2019 13:16:32 +0530 Subject: [PATCH 1/5] Update to Pax Logging and reformat the pom --- component/helper/pom.xml | 73 +++---- .../IdentityHelperServiceComponent.java | 15 +- pom.xml | 191 +++++------------- 3 files changed, 100 insertions(+), 179 deletions(-) diff --git a/component/helper/pom.xml b/component/helper/pom.xml index 0bd0c6e..a688ae0 100644 --- a/component/helper/pom.xml +++ b/component/helper/pom.xml @@ -29,27 +29,41 @@ bundle WSO2 Carbon - Library For Identity Extension Helper http://wso2.org + + + + org.ops4j.pax.logging + pax-logging-api + ${pax.logging.api.version} + + + org.wso2.carbon.identity.framework + org.wso2.carbon.identity.application.common + ${carbon.identity.version} + + + org.wso2.carbon.identity.framework + org.wso2.carbon.identity.core + ${carbon.identity.version} + + + org.wso2.carbon.identity.framework + org.wso2.carbon.identity.application.authentication.framework + ${carbon.identity.version} + + + org.wso2.carbon + org.wso2.carbon.user.core + ${carbon.kernel.version} + + + org.wso2.carbon.identity.framework + org.wso2.carbon.identity.mgt + ${carbon.identity.version} + + - - - - org.apache.felix - maven-bundle-plugin - 2.3.5 - true - - - - - org.apache.maven.plugins - maven-compiler-plugin - 2.0 - - 1.7 - 1.7 - - org.apache.felix maven-bundle-plugin @@ -62,19 +76,19 @@ org.wso2.carbon.extension.identity.helper.internal - org.apache.commons.logging.*; version="1.0.4", + org.apache.commons.logging.*; version="${commons-logging.osgi.version.range}", org.osgi.framework, - org.wso2.carbon.identity.application.authentication.framework.*; version="${carbon.identity.package.import.version.range}", - org.wso2.carbon.identity.application.common.model; version="${carbon.identity.package.import.version.range}", + org.wso2.carbon.identity.application.authentication.framework.*; version="${carbon.identity.framework.imp.pkg.version.range}", + org.wso2.carbon.identity.application.common.model; version="${carbon.identity.framework.imp.pkg.version.range}", org.wso2.carbon.identity.base; version="${carbon.identity.package.import.version.range}", org.wso2.carbon.identity.core.model; version="${carbon.identity.package.import.version.range}", org.wso2.carbon.identity.core.util; version="${carbon.identity.package.import.version.range}", org.wso2.carbon.identity.mgt; version="${carbon.identity.package.import.version.range}", org.wso2.carbon.identity.mgt.dto; version="${carbon.identity.package.import.version.range}", org.wso2.carbon.identity.mgt.store; version="${carbon.identity.package.import.version.range}", + org.wso2.carbon.user.core.*; version="${carbon.kernel.package.import.version.range}", javax.servlet, javax.servlet.http, - org.apache.oltu.oauth2.*; version="${oltu.package.import.version.range}", *;resolution:=optional @@ -85,19 +99,6 @@ - - org.apache.felix - maven-scr-plugin - 1.7.2 - - - generate-scr-scrdescriptor - - scr - - - - \ No newline at end of file diff --git a/component/helper/src/main/java/org/wso2/carbon/extension/identity/helper/internal/IdentityHelperServiceComponent.java b/component/helper/src/main/java/org/wso2/carbon/extension/identity/helper/internal/IdentityHelperServiceComponent.java index 499a4d8..c985531 100644 --- a/component/helper/src/main/java/org/wso2/carbon/extension/identity/helper/internal/IdentityHelperServiceComponent.java +++ b/component/helper/src/main/java/org/wso2/carbon/extension/identity/helper/internal/IdentityHelperServiceComponent.java @@ -21,19 +21,18 @@ import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.osgi.service.component.ComponentContext; -import org.wso2.carbon.extension.identity.helper.FederatedAuthenticatorUtil; -import org.wso2.carbon.identity.application.authentication.framework.ApplicationAuthenticator; +import org.osgi.service.component.annotations.Activate; +import org.osgi.service.component.annotations.Component; +import org.osgi.service.component.annotations.Deactivate; -import java.util.Hashtable; - -/** - * @scr.component name="identity.application.helper.AuthenticationFramework.component" immediate="true" - */ +@Component(name = "identity.application.helper.AuthenticationFramework.component", immediate = true) public class IdentityHelperServiceComponent { private static Log log = LogFactory.getLog(IdentityHelperServiceComponent.class); + @Activate protected void activate(ComponentContext ctxt) { + try { if (log.isDebugEnabled()) { log.debug("Authentication Common Extension Framework is activated"); @@ -43,7 +42,9 @@ protected void activate(ComponentContext ctxt) { } } + @Deactivate protected void deactivate(ComponentContext ctxt) { + if (log.isDebugEnabled()) { log.debug("Authentication Common Extension Framework is deactivated"); } diff --git a/pom.xml b/pom.xml index b3036bc..8a42000 100644 --- a/pom.xml +++ b/pom.xml @@ -17,12 +17,13 @@ ~ under the License. --> - + 4.0.0 org.wso2 wso2 - 1 + 1.2 org.wso2.carbon.extension.identity.authenticator.utils identity-extension-utils @@ -30,121 +31,47 @@ pom WSO2 Carbon Extension - Identity Extension Utils Pom http://wso2.org - - - default - - true - - - component/helper - feature - - - - - - org.wso2.carbon.identity - org.wso2.carbon.idp.mgt - ${carbon.identity.version} - - - org.wso2.carbon - org.wso2.carbon.logging - ${commons-logging.version} - - - org.wso2.carbon.identity - org.wso2.carbon.identity.application.common - ${carbon.identity.version} - - - org.wso2.carbon.identity - org.wso2.carbon.identity.user.profile - ${carbon.identity.version} - - - org.wso2.carbon.identity - org.wso2.carbon.identity.user.account.association - ${carbon.identity.version} - - - org.wso2.carbon.identity - org.wso2.carbon.identity.core - ${carbon.identity.version} - - - org.wso2.carbon.identity - org.wso2.carbon.identity.application.authentication.framework - ${carbon.identity.version} - - - org.wso2.carbon.identity - org.wso2.carbon.identity.notification.mgt - ${carbon.identity.version} - - - org.wso2.carbon.identity - org.wso2.carbon.identity.provisioning - ${carbon.identity.version} - - - org.wso2.carbon - org.wso2.carbon.core - ${carbon.kernel.version} - - - org.wso2.carbon - org.wso2.carbon.user.core - ${carbon.kernel.version} - - - org.wso2.carbon.identity - org.wso2.carbon.identity.application.mgt - ${carbon.identity.version} - - - org.apache.oltu.oauth2 - org.apache.oltu.oauth2.client - ${org.apache.oltu.oauth2.client-version} - - - org.codehaus.jettison - jettison - - - - - org.apache.oltu.oauth2 - org.apache.oltu.oauth2.common - 1.0.1 - - - org.wso2.carbon.identity - org.wso2.carbon.identity.application.authenticator.openid - ${carbon.identity.version} - - - org.wso2.carbon.identity - org.wso2.carbon.identity.application.authenticator.oidc - ${carbon.identity.version} - - - org.wso2.carbon - org.wso2.carbon.ui - ${carbon.kernel.version} - - - org.json.wso2 - json - ${wso2.json} - - - org.wso2.carbon.identity - org.wso2.carbon.identity.mgt - 5.2.0 - - + + + component/helper + feature + + + + + + org.ops4j.pax.logging + pax-logging-api + ${pax.logging.api.version} + + + org.wso2.carbon.identity.framework + org.wso2.carbon.identity.application.common + ${carbon.identity.version} + + + org.wso2.carbon.identity.framework + org.wso2.carbon.identity.core + ${carbon.identity.version} + + + org.wso2.carbon.identity.framework + org.wso2.carbon.identity.application.authentication.framework + ${carbon.identity.version} + + + org.wso2.carbon + org.wso2.carbon.user.core + ${carbon.kernel.version} + + + org.wso2.carbon.identity.framework + org.wso2.carbon.identity.mgt + ${carbon.identity.version} + + + +>>>>>>> 6f18ca2 (Update to Pax Logging and reformat the pom) scm:git:https://github.com/wso2-extensions/identity-extension-utils.git @@ -193,30 +120,16 @@ 2.3.1 UTF-8 - 1.7 - 1.7 + 1.8 + 1.8 - - org.apache.felix - maven-scr-plugin - 1.7.2 - - - generate-scr-scrdescriptor - - scr - - - - org.apache.felix maven-bundle-plugin - 2.3.5 true NONE @@ -331,14 +244,20 @@ ${project.version} - 5.0.7 + 7.6.3 4.4.3 - 4.4.3 + 4.10.24 1.0.0.wso2v2 0.31 1.0.0 [1.0.0, 2.0.0) 3.0.0.wso2v5 - [5.0.0, 8.0.0) + [5.14.0, 8.0.0) + + [4.5.0, 5.0.0) + + + 1.10.1 + [1.2.0,2.0.0) From 61b835b2268e7535a3e5cf33e48741c606125731 Mon Sep 17 00:00:00 2001 From: asha15 <165079T@uom.lk> Date: Tue, 12 Nov 2024 13:01:57 +0530 Subject: [PATCH 2/5] Fix build issues --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 8a42000..7884d13 100644 --- a/pom.xml +++ b/pom.xml @@ -71,7 +71,7 @@ ->>>>>>> 6f18ca2 (Update to Pax Logging and reformat the pom) + scm:git:https://github.com/wso2-extensions/identity-extension-utils.git From 76ac47ff2d0ebcafdc516ce62504d6b89e41f963 Mon Sep 17 00:00:00 2001 From: asha15 <165079T@uom.lk> Date: Tue, 26 Nov 2024 17:16:56 +0530 Subject: [PATCH 3/5] Add maven bundle plugin version --- pom.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 7884d13..01ec784 100644 --- a/pom.xml +++ b/pom.xml @@ -130,6 +130,7 @@ org.apache.felix maven-bundle-plugin + 3.2.0 true NONE @@ -244,7 +245,7 @@ ${project.version} - 7.6.3 + 7.7.1 4.4.3 4.10.24 1.0.0.wso2v2 From 931834533cd22f61235ea34531d02ec4f6319d5d Mon Sep 17 00:00:00 2001 From: asha15 <165079T@uom.lk> Date: Tue, 26 Nov 2024 17:17:26 +0530 Subject: [PATCH 4/5] Refactor the code --- component/helper/pom.xml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/component/helper/pom.xml b/component/helper/pom.xml index a688ae0..b192f6b 100644 --- a/component/helper/pom.xml +++ b/component/helper/pom.xml @@ -80,12 +80,12 @@ org.osgi.framework, org.wso2.carbon.identity.application.authentication.framework.*; version="${carbon.identity.framework.imp.pkg.version.range}", org.wso2.carbon.identity.application.common.model; version="${carbon.identity.framework.imp.pkg.version.range}", - org.wso2.carbon.identity.base; version="${carbon.identity.package.import.version.range}", - org.wso2.carbon.identity.core.model; version="${carbon.identity.package.import.version.range}", - org.wso2.carbon.identity.core.util; version="${carbon.identity.package.import.version.range}", - org.wso2.carbon.identity.mgt; version="${carbon.identity.package.import.version.range}", - org.wso2.carbon.identity.mgt.dto; version="${carbon.identity.package.import.version.range}", - org.wso2.carbon.identity.mgt.store; version="${carbon.identity.package.import.version.range}", + org.wso2.carbon.identity.base; version="${carbon.identity.framework.imp.pkg.version.range}", + org.wso2.carbon.identity.core.model; version="${carbon.identity.framework.imp.pkg.version.range}", + org.wso2.carbon.identity.core.util; version="${carbon.identity.framework.imp.pkg.version.range}", + org.wso2.carbon.identity.mgt; version="${carbon.identity.framework.imp.pkg.version.range}", + org.wso2.carbon.identity.mgt.dto; version="${carbon.identity.framework.imp.pkg.version.range}", + org.wso2.carbon.identity.mgt.store; version="${carbon.identity.framework.imp.pkg.version.range}", org.wso2.carbon.user.core.*; version="${carbon.kernel.package.import.version.range}", javax.servlet, javax.servlet.http, From 14de92d83770fc802ddf049551c74ab4ace675e5 Mon Sep 17 00:00:00 2001 From: asha15 <165079T@uom.lk> Date: Thu, 28 Nov 2024 17:25:32 +0530 Subject: [PATCH 5/5] Add maven compiler plugin --- component/helper/pom.xml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/component/helper/pom.xml b/component/helper/pom.xml index b192f6b..2312f34 100644 --- a/component/helper/pom.xml +++ b/component/helper/pom.xml @@ -64,6 +64,15 @@ + + org.apache.maven.plugins + maven-compiler-plugin + true + + 1.7 + 1.7 + + org.apache.felix maven-bundle-plugin