diff --git a/pom.xml b/pom.xml
index f11444f5..3b7fe0a2 100644
--- a/pom.xml
+++ b/pom.xml
@@ -481,6 +481,12 @@
org.springframework
spring-context
${springVersion}
+
+
+ commons-logging
+ commons-logging
+
+
org.springframework
@@ -670,7 +676,7 @@
javax.annotation
javax.annotation-api
- 1.3.2
+ ${javax.annotation.version}
@@ -694,34 +700,52 @@
org.apache.logging.log4j
log4j-api
- 2.9.1
+ ${log4j.version}
test
org.apache.logging.log4j
log4j-core
- 2.9.1
+ ${log4j.version}
test
org.apache.logging.log4j
log4j-slf4j-impl
- 2.9.1
+ ${log4j.version}
test
org.apache.logging.log4j
log4j-jcl
- 2.9.1
+ ${log4j.version}
org.apache.openjpa
openjpa
${openjpa.version}
+
+
+ junit
+ junit
+
+
+ org.apache.geronimo.specs
+ geronimo-jpa_2.0_spec
+
+
+ org.apache.geronimo.specs
+ geronimo-jms_1.1_spec
+
+
+ org.apache.geronimo.specs
+ geronimo-jta_1.1_spec
+
+
diff --git a/redback-authentication/redback-authentication-providers/redback-authentication-memory/pom.xml b/redback-authentication/redback-authentication-providers/redback-authentication-memory/pom.xml
index e3c1ed83..f70ab7ef 100644
--- a/redback-authentication/redback-authentication-providers/redback-authentication-memory/pom.xml
+++ b/redback-authentication/redback-authentication-providers/redback-authentication-memory/pom.xml
@@ -47,6 +47,11 @@
javax.inject
+
+ org.apache.logging.log4j
+ log4j-jcl
+ test
+
org.springframework
spring-test
diff --git a/redback-policy/pom.xml b/redback-policy/pom.xml
index cc0b9619..1d7dbff4 100644
--- a/redback-policy/pom.xml
+++ b/redback-policy/pom.xml
@@ -74,6 +74,13 @@
test
+
+ org.apache.logging.log4j
+ log4j-jcl
+ test
+
+
+
org.junit.platform
junit-platform-launcher
@@ -94,6 +101,13 @@
junit-vintage-engine
test
+
+ junit
+ junit
+ test
+
+
+
org.springframework
spring-test
diff --git a/redback-policy/src/test/java/org/apache/archiva/redback/policy/PasswordEncoderTest.java b/redback-policy/src/test/java/org/apache/archiva/redback/policy/PasswordEncoderTest.java
index 806e195a..0f28bfa2 100644
--- a/redback-policy/src/test/java/org/apache/archiva/redback/policy/PasswordEncoderTest.java
+++ b/redback-policy/src/test/java/org/apache/archiva/redback/policy/PasswordEncoderTest.java
@@ -17,7 +17,6 @@ package org.apache.archiva.redback.policy;
*/
import junit.framework.TestCase;
-import org.apache.archiva.redback.policy.PasswordEncoder;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
diff --git a/redback-users/redback-users-providers/redback-users-cached/pom.xml b/redback-users/redback-users-providers/redback-users-cached/pom.xml
index a70b0392..8bb1d791 100644
--- a/redback-users/redback-users-providers/redback-users-cached/pom.xml
+++ b/redback-users/redback-users-providers/redback-users-cached/pom.xml
@@ -64,9 +64,12 @@
org.apache.archiva.redback
redback-common-jpa
+
+
net.sf.ehcache
ehcache
+ runtime
diff --git a/redback-users/redback-users-providers/redback-users-jpa/pom.xml b/redback-users/redback-users-providers/redback-users-jpa/pom.xml
index 020b7696..874b7ee9 100644
--- a/redback-users/redback-users-providers/redback-users-jpa/pom.xml
+++ b/redback-users/redback-users-providers/redback-users-jpa/pom.xml
@@ -89,31 +89,13 @@
org.apache.openjpa
openjpa
- ${openjpa.version}
-
-
- junit
- junit
-
-
- org.apache.geronimo.specs
- geronimo-jpa_2.0_spec
-
-
- org.apache.geronimo.specs
- geronimo-jms_1.1_spec
-
-
- org.apache.geronimo.specs
- geronimo-jta_1.1_spec
-
-
org.springframework
spring-tx
${springVersion}
+ runtime
@@ -151,6 +133,12 @@
test
+
+ org.springframework
+ spring-test
+ test
+
+
org.apache.logging.log4j
log4j-slf4j-impl
diff --git a/redback-users/redback-users-providers/redback-users-jpa/src/main/java/org/apache/archiva/redback/users/jpa/JpaUserManager.java b/redback-users/redback-users-providers/redback-users-jpa/src/main/java/org/apache/archiva/redback/users/jpa/JpaUserManager.java
index 4f9b12c8..1ca7f479 100644
--- a/redback-users/redback-users-providers/redback-users-jpa/src/main/java/org/apache/archiva/redback/users/jpa/JpaUserManager.java
+++ b/redback-users/redback-users-providers/redback-users-jpa/src/main/java/org/apache/archiva/redback/users/jpa/JpaUserManager.java
@@ -30,7 +30,6 @@ import org.apache.archiva.redback.users.UserQuery;
import org.apache.archiva.redback.users.jpa.model.JpaUser;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;
-import org.springframework.transaction.annotation.Transactional;
import javax.inject.Inject;
import javax.persistence.EntityManager;
@@ -38,6 +37,7 @@ import javax.persistence.NoResultException;
import javax.persistence.PersistenceContext;
import javax.persistence.Query;
import javax.persistence.TypedQuery;
+import javax.transaction.Transactional;
import java.util.Date;
import java.util.List;
import java.util.concurrent.atomic.AtomicBoolean;