diff options
author | Martin Schreier <martin_s@apache.org> | 2022-01-05 18:12:45 +0100 |
---|---|---|
committer | Martin Schreier <martin_s@apache.org> | 2022-01-05 18:12:45 +0100 |
commit | 31869b91d19f50f26052128d4a4afe9a2fb47970 (patch) | |
tree | 4ff8db4e631335554c1bb6edb3a5cb6239eb71c2 | |
parent | 23abc2077453ba96dd71bd7db8bd5a0924eddeec (diff) | |
download | archiva-31869b91d19f50f26052128d4a4afe9a2fb47970.tar.gz archiva-31869b91d19f50f26052128d4a4afe9a2fb47970.zip |
Switching to new ehcache version
10 files changed, 8 insertions, 30 deletions
diff --git a/archiva-modules/archiva-base/archiva-policies/pom.xml b/archiva-modules/archiva-base/archiva-policies/pom.xml index 5252b4aa0..59a7642af 100644 --- a/archiva-modules/archiva-base/archiva-policies/pom.xml +++ b/archiva-modules/archiva-base/archiva-policies/pom.xml @@ -82,17 +82,6 @@ <artifactId>spring-context</artifactId> </dependency> <dependency> - <groupId>net.sf.ehcache</groupId> - <artifactId>ehcache</artifactId> - <scope>test</scope> - <exclusions> - <exclusion> - <groupId>commons-logging</groupId> - <artifactId>commons-logging</artifactId> - </exclusion> - </exclusions> - </dependency> - <dependency> <groupId>org.apache.archiva</groupId> <artifactId>archiva-storage-fs</artifactId> <scope>test</scope> diff --git a/archiva-modules/archiva-maven/archiva-maven-proxy/pom.xml b/archiva-modules/archiva-maven/archiva-maven-proxy/pom.xml index 1e0ef5db9..611964236 100644 --- a/archiva-modules/archiva-maven/archiva-maven-proxy/pom.xml +++ b/archiva-modules/archiva-maven/archiva-maven-proxy/pom.xml @@ -135,7 +135,7 @@ </dependency> <dependency> - <groupId>net.sf.ehcache</groupId> + <groupId>org.ehcache</groupId> <artifactId>ehcache</artifactId> <scope>test</scope> </dependency> diff --git a/archiva-modules/archiva-maven/archiva-maven-proxy/src/test/java/org/apache/archiva/maven/proxy/AbstractProxyTestCase.java b/archiva-modules/archiva-maven/archiva-maven-proxy/src/test/java/org/apache/archiva/maven/proxy/AbstractProxyTestCase.java index 156f188ce..ae3589333 100644 --- a/archiva-modules/archiva-maven/archiva-maven-proxy/src/test/java/org/apache/archiva/maven/proxy/AbstractProxyTestCase.java +++ b/archiva-modules/archiva-maven/archiva-maven-proxy/src/test/java/org/apache/archiva/maven/proxy/AbstractProxyTestCase.java @@ -18,7 +18,6 @@ package org.apache.archiva.maven.proxy; * under the License. */ -import net.sf.ehcache.CacheManager; import org.apache.archiva.configuration.ArchivaConfiguration; import org.apache.archiva.configuration.ArchivaRuntimeConfiguration; import org.apache.archiva.configuration.ManagedRepositoryConfiguration; @@ -188,8 +187,6 @@ public abstract class AbstractProxyTestCase delegate.setDelegate( wagonMock ); - CacheManager.getInstance().clearAll(); - log.info( "\n.\\ {}() \\._________________________________________\n", name ); } diff --git a/archiva-modules/archiva-web/archiva-security/pom.xml b/archiva-modules/archiva-web/archiva-security/pom.xml index e84139a5c..d2484a08e 100644 --- a/archiva-modules/archiva-web/archiva-security/pom.xml +++ b/archiva-modules/archiva-web/archiva-security/pom.xml @@ -255,7 +255,7 @@ </dependency> <dependency> - <groupId>net.sf.ehcache</groupId> + <groupId>org.ehcache</groupId> <artifactId>ehcache</artifactId> <scope>test</scope> </dependency> diff --git a/archiva-modules/archiva-web/archiva-security/src/test/java/org/apache/archiva/security/AbstractSecurityTest.java b/archiva-modules/archiva-web/archiva-security/src/test/java/org/apache/archiva/security/AbstractSecurityTest.java index d877c69f1..550745d20 100644 --- a/archiva-modules/archiva-web/archiva-security/src/test/java/org/apache/archiva/security/AbstractSecurityTest.java +++ b/archiva-modules/archiva-web/archiva-security/src/test/java/org/apache/archiva/security/AbstractSecurityTest.java @@ -20,7 +20,6 @@ package org.apache.archiva.security; */ import junit.framework.TestCase; -import net.sf.ehcache.CacheManager; import org.apache.archiva.configuration.ArchivaConfiguration; import org.apache.archiva.configuration.ManagedRepositoryConfiguration; import org.apache.archiva.redback.rbac.RBACManager; @@ -172,6 +171,5 @@ public abstract class AbstractSecurityTest } userAssignment.setRoleIds( new ArrayList( Arrays.asList( "guest" ) ) ); rbacManager.saveUserAssignment( userAssignment ); - CacheManager.getInstance().clearAll(); } } diff --git a/archiva-modules/archiva-web/archiva-webapp/pom.xml b/archiva-modules/archiva-web/archiva-webapp/pom.xml index 8f1a21620..44d6fa531 100644 --- a/archiva-modules/archiva-web/archiva-webapp/pom.xml +++ b/archiva-modules/archiva-web/archiva-webapp/pom.xml @@ -430,7 +430,7 @@ </exclusions> </dependency> <dependency> - <groupId>net.sf.ehcache</groupId> + <groupId>org.ehcache</groupId> <artifactId>ehcache</artifactId> <scope>runtime</scope> <exclusions> diff --git a/archiva-modules/archiva-web/archiva-webdav/pom.xml b/archiva-modules/archiva-web/archiva-webdav/pom.xml index 747293b41..426d86e93 100644 --- a/archiva-modules/archiva-web/archiva-webdav/pom.xml +++ b/archiva-modules/archiva-web/archiva-webdav/pom.xml @@ -189,11 +189,6 @@ <artifactId>jakarta.inject-api</artifactId> </dependency> <dependency> - <groupId>net.sf.ehcache</groupId> - <artifactId>ehcache</artifactId> - <scope>runtime</scope> - </dependency> - <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-lang3</artifactId> </dependency> diff --git a/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/AbstractRepositoryServletTestCase.java b/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/AbstractRepositoryServletTestCase.java index de7351408..dd699581d 100644 --- a/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/AbstractRepositoryServletTestCase.java +++ b/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/AbstractRepositoryServletTestCase.java @@ -25,7 +25,6 @@ import com.gargoylesoftware.htmlunit.WebClient; import com.gargoylesoftware.htmlunit.WebRequest; import com.gargoylesoftware.htmlunit.WebResponse; import junit.framework.TestCase; -import net.sf.ehcache.CacheManager; import org.apache.archiva.configuration.ArchivaConfiguration; import org.apache.archiva.configuration.Configuration; import org.apache.archiva.configuration.ManagedRepositoryConfiguration; @@ -218,8 +217,6 @@ public abstract class AbstractRepositoryServletTestCase // } // } - CacheManager.getInstance().clearAll(); - } diff --git a/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/RepositoryServletSecurityTest.java b/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/RepositoryServletSecurityTest.java index bba326e65..48ce7f04b 100644 --- a/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/RepositoryServletSecurityTest.java +++ b/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/RepositoryServletSecurityTest.java @@ -21,7 +21,6 @@ package org.apache.archiva.webdav; import junit.framework.TestCase; -import net.sf.ehcache.CacheManager; import org.apache.archiva.configuration.ArchivaConfiguration; import org.apache.archiva.configuration.Configuration; import org.apache.archiva.configuration.ManagedRepositoryConfiguration; @@ -159,8 +158,6 @@ public class RepositoryServletSecurityTest saveConfiguration( archivaConfiguration ); - CacheManager.getInstance().clearAll(); - servletAuth = mock( ServletAuthenticator.class ); @@ -922,6 +922,11 @@ </dependency> <dependency> + <groupId>org.ehcache</groupId> + <artifactId>ehcache</artifactId> + <version>${ehcache.version}</version> + </dependency> + <dependency> <groupId>commons-codec</groupId> <artifactId>commons-codec</artifactId> <version>${commons.codec.version}</version> |