aboutsummaryrefslogtreecommitdiffstats
path: root/appc-event-listener
diff options
context:
space:
mode:
authorTaka Cho <takamune.cho@att.com>2019-05-19 17:15:27 -0400
committerTakamune Cho <takamune.cho@att.com>2019-05-21 20:25:36 +0000
commitabea37ddb6d36e77c7e86f68f4bd6405dba58276 (patch)
tree21d4772d1f735bc42c0ead3641e8743dbdfdc27a /appc-event-listener
parent8183cf136ad38556c4628199c1eb6b30dccbb3e3 (diff)
resolve base64 class not found
add commons-codec in embedded-dependency in event listener pom file Issue-ID: APPC-1604 Change-Id: I7006ed41d412b1dcf21dd64987a84d1ad04c9093 Signed-off-by: Taka Cho <takamune.cho@att.com>
Diffstat (limited to 'appc-event-listener')
-rw-r--r--appc-event-listener/appc-event-listener-bundle/pom.xml7
-rw-r--r--appc-event-listener/appc-event-listener-bundle/src/main/java/org/onap/appc/listener/demo/impl/ProviderOperations.java2
2 files changed, 6 insertions, 3 deletions
diff --git a/appc-event-listener/appc-event-listener-bundle/pom.xml b/appc-event-listener/appc-event-listener-bundle/pom.xml
index e80d273bf..cd21d9052 100644
--- a/appc-event-listener/appc-event-listener-bundle/pom.xml
+++ b/appc-event-listener/appc-event-listener-bundle/pom.xml
@@ -102,7 +102,10 @@
<groupId>equinoxSDK381</groupId>
<artifactId>org.eclipse.osgi</artifactId>
</dependency>
-
+ <dependency>
+ <groupId>commons-codec</groupId>
+ <artifactId>commons-codec</artifactId>
+ </dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
@@ -152,7 +155,7 @@
*;resolution:=optional
</Import-Package>
<Embed-Dependency>
- httpclient,httpcore,jasypt,commons-lang,commons-lang3,appc-common-bundle,
+ httpclient,httpcore,jasypt,commons-lang,commons-lang3,commons-codec,appc-common-bundle,
logback-core,logback-classic,eelf-core,commons-logging;scope=compile|runtime;inline=false
</Embed-Dependency>
<Embed-Transitive>true</Embed-Transitive>
diff --git a/appc-event-listener/appc-event-listener-bundle/src/main/java/org/onap/appc/listener/demo/impl/ProviderOperations.java b/appc-event-listener/appc-event-listener-bundle/src/main/java/org/onap/appc/listener/demo/impl/ProviderOperations.java
index f51be2859..6cd2f2d76 100644
--- a/appc-event-listener/appc-event-listener-bundle/src/main/java/org/onap/appc/listener/demo/impl/ProviderOperations.java
+++ b/appc-event-listener/appc-event-listener-bundle/src/main/java/org/onap/appc/listener/demo/impl/ProviderOperations.java
@@ -168,7 +168,7 @@ public class ProviderOperations {
public static String setAuthentication(String user, String password) {
if (user != null && password != null) {
String authStr = user + ":" + password;
- basic_auth = new String(Base64.encodeBase64(authStr.getBytes()));
+ basic_auth = new String(org.apache.commons.codec.binary.Base64.encodeBase64(authStr.getBytes()));
} else {
basic_auth = null;
}