]> source.dussan.org Git - archiva.git/commitdiff
Switching to new ehcache version
authorMartin Schreier <martin_s@apache.org>
Wed, 5 Jan 2022 17:12:45 +0000 (18:12 +0100)
committerMartin Schreier <martin_s@apache.org>
Wed, 5 Jan 2022 17:12:45 +0000 (18:12 +0100)
archiva-modules/archiva-base/archiva-policies/pom.xml
archiva-modules/archiva-maven/archiva-maven-proxy/pom.xml
archiva-modules/archiva-maven/archiva-maven-proxy/src/test/java/org/apache/archiva/maven/proxy/AbstractProxyTestCase.java
archiva-modules/archiva-web/archiva-security/pom.xml
archiva-modules/archiva-web/archiva-security/src/test/java/org/apache/archiva/security/AbstractSecurityTest.java
archiva-modules/archiva-web/archiva-webapp/pom.xml
archiva-modules/archiva-web/archiva-webdav/pom.xml
archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/AbstractRepositoryServletTestCase.java
archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/RepositoryServletSecurityTest.java
pom.xml

index 5252b4aa0ebf642be88e2538377082fe247101e6..59a7642afcce323f084db4d18468477cc4fe8765 100644 (file)
       <groupId>org.springframework</groupId>
       <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>
index 1e0ef5db99480f12df4961caa12fbb302cde03a5..611964236038c4df36c76e3b3c6435406af86905 100644 (file)
     </dependency>
 
     <dependency>
-      <groupId>net.sf.ehcache</groupId>
+      <groupId>org.ehcache</groupId>
       <artifactId>ehcache</artifactId>
       <scope>test</scope>
     </dependency>
index 156f188cef0a1ede245d77bdd71c4c1b17d15343..ae35893330338670f5fc13a8ade7fc692fc0f3cd 100644 (file)
@@ -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 );
     }
 
index e84139a5c573009d5c6736d74db4f31617033b7f..d2484a08e562ead577006a47cf17790f04e832f3 100644 (file)
     </dependency>
 
     <dependency>
-      <groupId>net.sf.ehcache</groupId>
+      <groupId>org.ehcache</groupId>
       <artifactId>ehcache</artifactId>
       <scope>test</scope>
     </dependency>
index d877c69f1c924ec41bd473b8002cf4a070067867..550745d206a609bd37fc6d514f94b85e82dcb1d4 100644 (file)
@@ -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();
     }
 }
index 8f1a21620bc3fbf530b2ea4b9b6b1ec686446416..44d6fa5316d4c1120bed77ca90fd2f4e704824e5 100644 (file)
       </exclusions>
     </dependency>
     <dependency>
-      <groupId>net.sf.ehcache</groupId>
+      <groupId>org.ehcache</groupId>
       <artifactId>ehcache</artifactId>
       <scope>runtime</scope>
       <exclusions>
index 747293b414da5d223ce34e174cfe47b01dc84b3a..426d86e934dae9b56bf1bf329c9dae4bb18db6b0 100644 (file)
       <groupId>jakarta.inject</groupId>
       <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>
index de735140875a1b039acb179e9781a0551325dc9e..dd699581dc48fada7a7481b129d55c2164b31a02 100644 (file)
@@ -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();
-
 
     }
 
index bba326e6579f40c219a6a61392e72d37f6206476..48ce7f04b8ca00fe0db6043770d173e92d491412 100644 (file)
@@ -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 );
 
diff --git a/pom.xml b/pom.xml
index 3885563fb694ba3d57279605390337d185380790..bb0fde3bb5ba0590fc4bbf3312021bf1e2e00615 100644 (file)
--- a/pom.xml
+++ b/pom.xml
         <version>${modelmapper.version}</version>
       </dependency>
 
+      <dependency>
+        <groupId>org.ehcache</groupId>
+        <artifactId>ehcache</artifactId>
+        <version>${ehcache.version}</version>
+      </dependency>
       <dependency>
         <groupId>commons-codec</groupId>
         <artifactId>commons-codec</artifactId>