From 414c0f1970189226916e3ee5be9f386c69faa07c Mon Sep 17 00:00:00 2001 From: Martin Stockhammer Date: Wed, 13 Feb 2019 07:48:58 +0100 Subject: [PATCH] Fixing dependencies in new projects --- .../redback-common-configuration-acc2/pom.xml | 5 ++++ .../acc2/CommonsConfigurationRegistry.java | 25 +++---------------- 2 files changed, 8 insertions(+), 22 deletions(-) diff --git a/redback-common/redback-common-configuration/redback-common-configuration-acc2/pom.xml b/redback-common/redback-common-configuration/redback-common-configuration-acc2/pom.xml index 0783bc95..e74b825c 100644 --- a/redback-common/redback-common-configuration/redback-common-configuration-acc2/pom.xml +++ b/redback-common/redback-common-configuration/redback-common-configuration-acc2/pom.xml @@ -102,6 +102,11 @@ spring-test compile + + + org.apache.commons + commons-lang3 + diff --git a/redback-common/redback-common-configuration/redback-common-configuration-acc2/src/main/java/org/apache/archiva/redback/common/config/acc2/CommonsConfigurationRegistry.java b/redback-common/redback-common-configuration/redback-common-configuration-acc2/src/main/java/org/apache/archiva/redback/common/config/acc2/CommonsConfigurationRegistry.java index 8fe30d96..869a11ed 100644 --- a/redback-common/redback-common-configuration/redback-common-configuration-acc2/src/main/java/org/apache/archiva/redback/common/config/acc2/CommonsConfigurationRegistry.java +++ b/redback-common/redback-common-configuration/redback-common-configuration-acc2/src/main/java/org/apache/archiva/redback/common/config/acc2/CommonsConfigurationRegistry.java @@ -22,13 +22,7 @@ package org.apache.archiva.redback.common.config.acc2; import org.apache.archiva.redback.common.config.api.ConfigRegistry; import org.apache.archiva.redback.common.config.api.RegistryException; import org.apache.archiva.redback.common.config.api.RegistryListener; -import org.apache.commons.configuration2.CombinedConfiguration; -import org.apache.commons.configuration2.Configuration; -import org.apache.commons.configuration2.FileBasedConfiguration; -import org.apache.commons.configuration2.PropertiesConfiguration; -import org.apache.commons.configuration2.SystemConfiguration; -import org.apache.commons.configuration2.XMLConfiguration; -import org.apache.commons.configuration2.builder.BasicConfigurationBuilder; +import org.apache.commons.configuration2.*; import org.apache.commons.configuration2.builder.FileBasedConfigurationBuilder; import org.apache.commons.configuration2.builder.combined.CombinedConfigurationBuilder; import org.apache.commons.configuration2.builder.fluent.Parameters; @@ -51,25 +45,12 @@ import org.slf4j.LoggerFactory; import org.springframework.stereotype.Service; import javax.annotation.PostConstruct; -import java.io.ByteArrayInputStream; -import java.io.ByteArrayOutputStream; -import java.io.File; -import java.io.InputStream; -import java.io.OutputStream; -import java.io.UnsupportedEncodingException; +import java.io.*; import java.net.MalformedURLException; import java.net.URL; import java.nio.file.Path; -import java.util.ArrayList; -import java.util.Collection; -import java.util.HashSet; -import java.util.Iterator; -import java.util.List; -import java.util.Map; -import java.util.Set; -import java.util.TreeMap; +import java.util.*; import java.util.regex.Pattern; -import java.util.stream.Collector; import java.util.stream.Collectors; /**