Switching to new ehcache version

This commit is contained in:
Martin Schreier 2022-01-05 18:12:45 +01:00
parent 23abc20774
commit 31869b91d1
10 changed files with 8 additions and 30 deletions

View File

@ -81,17 +81,6 @@
<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>

View File

@ -135,7 +135,7 @@
</dependency>
<dependency>
<groupId>net.sf.ehcache</groupId>
<groupId>org.ehcache</groupId>
<artifactId>ehcache</artifactId>
<scope>test</scope>
</dependency>

View 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 );
}

View File

@ -255,7 +255,7 @@
</dependency>
<dependency>
<groupId>net.sf.ehcache</groupId>
<groupId>org.ehcache</groupId>
<artifactId>ehcache</artifactId>
<scope>test</scope>
</dependency>

View 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();
}
}

View File

@ -430,7 +430,7 @@
</exclusions>
</dependency>
<dependency>
<groupId>net.sf.ehcache</groupId>
<groupId>org.ehcache</groupId>
<artifactId>ehcache</artifactId>
<scope>runtime</scope>
<exclusions>

View File

@ -188,11 +188,6 @@
<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>

View 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();
}

View 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 );

View File

@ -921,6 +921,11 @@
<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>