diff --git a/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/main/java/org/apache/archiva/scheduler/indexing/DefaultDownloadRemoteIndexScheduler.java b/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/main/java/org/apache/archiva/scheduler/indexing/DefaultDownloadRemoteIndexScheduler.java index b0be98c0e..8c05d5788 100644 --- a/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/main/java/org/apache/archiva/scheduler/indexing/DefaultDownloadRemoteIndexScheduler.java +++ b/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/main/java/org/apache/archiva/scheduler/indexing/DefaultDownloadRemoteIndexScheduler.java @@ -145,7 +145,7 @@ public class DefaultDownloadRemoteIndexScheduler } @PreDestroy - private void shutdown() + public void shutdown() throws RepositoryAdminException, IOException { for ( RemoteRepository remoteRepository : remoteRepositoryAdmin.getRemoteRepositories() ) diff --git a/archiva-modules/archiva-web/archiva-webapp/pom.xml b/archiva-modules/archiva-web/archiva-webapp/pom.xml index 3d2e17b93..b856b2121 100644 --- a/archiva-modules/archiva-web/archiva-webapp/pom.xml +++ b/archiva-modules/archiva-web/archiva-webapp/pom.xml @@ -425,6 +425,22 @@ metadata-store-file runtime + + org.apache.velocity + velocity-tools + 1.3 + runtime + + + commons-logging + commons-logging + + + velocity + velocity-dep + + + org.apache.archiva diff --git a/archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/archiva/web/action/BrowseActionTest.java b/archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/archiva/web/action/BrowseActionTest.java index ea9a976ad..97dfafd7e 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/archiva/web/action/BrowseActionTest.java +++ b/archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/archiva/web/action/BrowseActionTest.java @@ -25,6 +25,8 @@ import org.apache.archiva.metadata.model.ProjectVersionMetadata; import org.apache.archiva.metadata.repository.RepositorySession; import org.apache.archiva.metadata.repository.memory.TestMetadataResolver; import org.apache.archiva.metadata.repository.memory.TestRepositorySessionFactory; +import org.apache.archiva.scheduler.indexing.DefaultDownloadRemoteIndexScheduler; +import org.springframework.context.support.GenericApplicationContext; import java.util.Arrays; import java.util.Collections; @@ -406,6 +408,7 @@ public class BrowseActionTest throws Exception { super.tearDown(); + applicationContext.getBean( DefaultDownloadRemoteIndexScheduler.class ).shutdown(); setObservableRepos( Lists.newArrayList( "test-repo" ) ); } } \ No newline at end of file diff --git a/archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/archiva/web/action/admin/repositories/AddRemoteRepositoryActionTest.java b/archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/archiva/web/action/admin/repositories/AddRemoteRepositoryActionTest.java index 6d4b8e22c..ef3491675 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/archiva/web/action/admin/repositories/AddRemoteRepositoryActionTest.java +++ b/archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/archiva/web/action/admin/repositories/AddRemoteRepositoryActionTest.java @@ -62,7 +62,7 @@ public class AddRemoteRepositoryActionTest } public void testSecureActionBundle() - throws SecureActionException + throws Exception { archivaConfiguration.getConfiguration(); archivaConfigurationControl.setReturnValue( new Configuration() );