diff --git a/component/pom.xml b/component/pom.xml
index fbc07d8..b177dcc 100644
--- a/component/pom.xml
+++ b/component/pom.xml
@@ -27,26 +27,7 @@
WSO2 Carbon - Authenticator Library For pinterest
http://wso2.org
-
-
-
- org.apache.felix
- maven-bundle-plugin
- 2.3.5
- true
-
-
-
-
- org.apache.maven.plugins
- maven-compiler-plugin
- 2.0
-
-
- 1.7
-
-
org.apache.felix
maven-bundle-plugin
@@ -80,19 +61,6 @@
-
- org.apache.felix
- maven-scr-plugin
- 1.7.2
-
-
- generate-scr-scrdescriptor
-
- scr
-
-
-
-
org.apache.maven.plugins
maven-surefire-plugin
@@ -156,6 +124,11 @@
+
+ org.apache.felix
+ org.apache.felix.scr.ds-annotations
+ ${apache.felix.scr.ds.annotations.version}
+
org.testng
@@ -182,11 +155,6 @@
powermock-api-mockito
${powermock.version}
-
- org.apache.felix
- org.apache.felix.scr.annotations
- ${felix.scr.version}
-
log4j
log4j
diff --git a/component/src/main/java/org/wso2/carbon/identity/authenticator/pinterest/internal/PinterestAuthenticatorServiceComponent.java b/component/src/main/java/org/wso2/carbon/identity/authenticator/pinterest/internal/PinterestAuthenticatorServiceComponent.java
index 9874141..78f3cea 100644
--- a/component/src/main/java/org/wso2/carbon/identity/authenticator/pinterest/internal/PinterestAuthenticatorServiceComponent.java
+++ b/component/src/main/java/org/wso2/carbon/identity/authenticator/pinterest/internal/PinterestAuthenticatorServiceComponent.java
@@ -22,14 +22,17 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.osgi.service.component.ComponentContext;
+import org.osgi.service.component.annotations.Activate;
+import org.osgi.service.component.annotations.Component;
+import org.osgi.service.component.annotations.Deactivate;
import org.wso2.carbon.identity.application.authentication.framework.ApplicationAuthenticator;
import org.wso2.carbon.identity.authenticator.pinterest.PinterestAuthenticator;
import java.util.Hashtable;
-/**
- * @scr.component name="identity.application.authenticator.pinterest.component" immediate="true"
- */
+@Component(
+ name="identity.application.authenticator.pinterest.component",
+ immediate= true)
public class PinterestAuthenticatorServiceComponent {
private static final Log log = LogFactory.getLog(PinterestAuthenticatorServiceComponent.class);
@@ -39,6 +42,7 @@ public class PinterestAuthenticatorServiceComponent {
*
* @param componentContext the Component Context
*/
+ @Activate
protected void activate(ComponentContext componentContext) {
PinterestAuthenticator authenticator = new PinterestAuthenticator();
Hashtable props = new Hashtable<>();
@@ -54,6 +58,7 @@ protected void activate(ComponentContext componentContext) {
*
* @param componentContext the Component Context
*/
+ @Deactivate
protected void deactivate(ComponentContext componentContext) {
if (log.isDebugEnabled()) {
log.debug("Pinterest authenticator is deactivated");
diff --git a/pom.xml b/pom.xml
index 1520904..a8083d0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -168,17 +168,17 @@
runtime
${jacoco.version}
+
+ org.apache.felix
+ org.apache.felix.scr.ds-annotations
+ ${apache.felix.scr.ds.annotations.version}
+
org.powermock
powermock-module-junit4
test
${powermock.version}
-
- org.apache.felix
- org.apache.felix.scr.annotations
- ${felix.scr.version}
-
org.powermock
powermock-api-mockito
@@ -253,10 +253,22 @@
+
+ org.apache.felix
+ maven-bundle-plugin
+ 3.2.0
+ true
+
+ NONE
+
+ ${buildNumber}
+
+
+
org.apache.felix
maven-scr-plugin
- 1.7.2
+ 1.26.0
generate-scr-scrdescriptor
@@ -266,15 +278,6 @@
-
- org.apache.felix
- maven-bundle-plugin
- 2.3.5
- true
-
- NONE
-
-
org.apache.maven.plugins
maven-source-plugin
@@ -317,7 +320,6 @@
5.0.7
4.4.3
4.4.3
- 1.12.0
1.0.0.wso2v2
1.0.0
[1.0.0, 2.0.0)
@@ -326,6 +328,7 @@
1.2
1.4.0.wso2v1
1.2.11-wso2v6
+ 1.2.4
[3.0,4)
1.0.0-wso2v2
2.6.0.wso2v1