Adapting to component changes. Updating to commons configuration 2.
This commit is contained in:
parent
011aed509e
commit
95637d1587
|
@ -41,7 +41,7 @@
|
|||
<dependency>
|
||||
<groupId>org.apache.commons</groupId>
|
||||
<artifactId>commons-configuration2</artifactId>
|
||||
<version>2.4</version>
|
||||
<version>${commons.configuration.version}</version>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>commons-beanutils</groupId>
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
|
||||
<bean name="commons-configuration" class="org.apache.archiva.components.registry.commons.CommonsConfigurationRegistry"
|
||||
init-method="initialize">
|
||||
<property name="properties">
|
||||
<property name="initialConfiguration">
|
||||
<value>
|
||||
<![CDATA[
|
||||
<configuration>
|
||||
|
|
|
@ -49,6 +49,10 @@
|
|||
<artifactId>archiva-components-spring-registry-commons</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-beanutils</groupId>
|
||||
<artifactId>commons-beanutils</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.slf4j</groupId>
|
||||
|
|
|
@ -133,7 +133,7 @@ public class DefaultUserConfiguration
|
|||
}
|
||||
log.info( "Attempting to find configuration [{}] (resolved to [{}])", configName, configName );
|
||||
|
||||
registry.addConfigurationFromFile(Paths.get(configName).toFile(), PREFIX );
|
||||
registry.addConfigurationFromFile(Paths.get(configName), configName, PREFIX );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
|
||||
<bean name="commons-configuration" class="org.apache.archiva.components.registry.commons.CommonsConfigurationRegistry"
|
||||
init-method="initialize">
|
||||
<property name="properties">
|
||||
<property name="initialConfiguration">
|
||||
<value>
|
||||
<![CDATA[
|
||||
<configuration>
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
|
||||
<bean name="commons-configuration" class="org.apache.archiva.components.registry.commons.CommonsConfigurationRegistry"
|
||||
init-method="initialize">
|
||||
<property name="properties">
|
||||
<property name="initialConfiguration">
|
||||
<value>
|
||||
<![CDATA[
|
||||
<configuration>
|
||||
|
|
|
@ -69,7 +69,7 @@
|
|||
|
||||
<bean name="commons-configuration" class="org.apache.archiva.components.registry.commons.CommonsConfigurationRegistry"
|
||||
init-method="initialize">
|
||||
<property name="properties">
|
||||
<property name="initialConfiguration">
|
||||
<value>
|
||||
<![CDATA[
|
||||
<configuration>
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
</bean>
|
||||
|
||||
<bean name="commons-configuration" class="org.apache.archiva.components.registry.commons.CommonsConfigurationRegistry">
|
||||
<property name="properties">
|
||||
<property name="initialConfiguration">
|
||||
<value>
|
||||
<![CDATA[
|
||||
<configuration>
|
||||
|
|
|
@ -30,7 +30,7 @@ import org.apache.archiva.redback.policy.encoders.SHA1PasswordEncoder;
|
|||
import org.apache.archiva.redback.users.User;
|
||||
import org.apache.archiva.redback.users.UserManager;
|
||||
import org.apache.archiva.redback.users.ldap.LdapUserQuery;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
|
Loading…
Reference in New Issue