From 9511c963abaf02fa1d6b0aa3ff80b53721c79bfc Mon Sep 17 00:00:00 2001 From: Fiete Ostkamp Date: Tue, 25 Oct 2022 14:22:37 +0000 Subject: Use the 1.9.4 parent pom in resources - upgrade apache commons-configuration to commons-configuration2 to resolve test failures Issue-ID: AAI-3566 Signed-off-by: Fiete Ostkamp Change-Id: I26657f326c15de33c65abb9ae7c9bb9608defbaf --- aai-resources/.classpath | 10 +++++----- aai-resources/pom.xml | 16 +++++----------- .../onap/aai/config/PropertyPasswordConfiguration.java | 12 ++++++++---- pom.xml | 2 +- 4 files changed, 19 insertions(+), 21 deletions(-) diff --git a/aai-resources/.classpath b/aai-resources/.classpath index e89215e..bc00f63 100644 --- a/aai-resources/.classpath +++ b/aai-resources/.classpath @@ -34,17 +34,17 @@ - + - - - - + + + + diff --git a/aai-resources/pom.xml b/aai-resources/pom.xml index 37e397c..fda6f5b 100644 --- a/aai-resources/pom.xml +++ b/aai-resources/pom.xml @@ -364,14 +364,9 @@ swagger-annotations - commons-configuration - commons-configuration - - - commons-lang - commons-lang - - + org.apache.commons + commons-configuration2 + 2.0 io.swagger @@ -408,14 +403,13 @@ - commons-lang - commons-lang + org.apache.commons + commons-lang3 com.att.eelf eelf-core - 2.0.0-oss ch.qos.logback diff --git a/aai-resources/src/main/java/org/onap/aai/config/PropertyPasswordConfiguration.java b/aai-resources/src/main/java/org/onap/aai/config/PropertyPasswordConfiguration.java index 0d2ff88..ae77e5a 100644 --- a/aai-resources/src/main/java/org/onap/aai/config/PropertyPasswordConfiguration.java +++ b/aai-resources/src/main/java/org/onap/aai/config/PropertyPasswordConfiguration.java @@ -29,18 +29,22 @@ import java.util.Properties; import java.util.regex.Matcher; import java.util.regex.Pattern; -import com.att.eelf.configuration.EELFLogger; -import com.att.eelf.configuration.EELFManager; import org.apache.commons.io.IOUtils; import org.springframework.context.ApplicationContextInitializer; import org.springframework.context.ConfigurableApplicationContext; -import org.springframework.core.env.*; +import org.springframework.core.env.ConfigurableEnvironment; +import org.springframework.core.env.EnumerablePropertySource; +import org.springframework.core.env.MapPropertySource; +import org.springframework.core.env.PropertySource; + +import com.att.eelf.configuration.EELFLogger; +import com.att.eelf.configuration.EELFManager; public class PropertyPasswordConfiguration implements ApplicationContextInitializer { private static final Pattern decodePasswordPattern = Pattern.compile("password\\((.*?)\\)"); private PasswordDecoder passwordDecoder = new JettyPasswordDecoder(); - private static final EELFLogger logger = EELFManager.getInstance().getLogger(PropertyPasswordConfiguration.class.getName()); + private static final EELFLogger logger = EELFManager.getLogger(PropertyPasswordConfiguration.class.getName()); @Override public void initialize(ConfigurableApplicationContext applicationContext) { diff --git a/pom.xml b/pom.xml index 1844536..7219597 100644 --- a/pom.xml +++ b/pom.xml @@ -26,7 +26,7 @@ org.onap.aai.aai-common aai-parent - 1.9.3 + 1.9.4 org.onap.aai.resources resources -- cgit 1.2.3-korg