]> source.dussan.org Git - archiva.git/commitdiff
[MRM-1516] missing dependency on velocity - ClassNotFoundException org.apache.velocit...
authorOlivier Lamy <olamy@apache.org>
Mon, 26 Sep 2011 22:49:57 +0000 (22:49 +0000)
committerOlivier Lamy <olamy@apache.org>
Mon, 26 Sep 2011 22:49:57 +0000 (22:49 +0000)
and fis unit tests.

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1176112 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/main/java/org/apache/archiva/scheduler/indexing/DefaultDownloadRemoteIndexScheduler.java
archiva-modules/archiva-web/archiva-webapp/pom.xml
archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/archiva/web/action/BrowseActionTest.java
archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/archiva/web/action/admin/repositories/AddRemoteRepositoryActionTest.java

index b0be98c0ec8342a7c384614607faf2b69e8073d5..8c05d5788143e677486b2b2c3f6766582624dd5d 100644 (file)
@@ -145,7 +145,7 @@ public class DefaultDownloadRemoteIndexScheduler
     }
 
     @PreDestroy
-    private void shutdown()
+    public void shutdown()
         throws RepositoryAdminException, IOException
     {
         for ( RemoteRepository remoteRepository : remoteRepositoryAdmin.getRemoteRepositories() )
index 3d2e17b93b0de5abe1480584ba80f7e995372590..b856b21212dc1b03c2abeabbaa863ce35d6d753e 100644 (file)
       <artifactId>metadata-store-file</artifactId>
       <scope>runtime</scope>
     </dependency>
+    <dependency>
+      <groupId>org.apache.velocity</groupId>
+      <artifactId>velocity-tools</artifactId>
+      <version>1.3</version>
+      <scope>runtime</scope>
+      <exclusions>
+        <exclusion>
+          <groupId>commons-logging</groupId>
+          <artifactId>commons-logging</artifactId>
+        </exclusion>
+        <exclusion>
+          <groupId>velocity</groupId>
+          <artifactId>velocity-dep</artifactId>
+        </exclusion>
+      </exclusions>
+    </dependency>
     <dependency>
       <groupId>org.apache.archiva</groupId>
       <!--  FIXME: temporary coupling to plugin, should be runtime -->
index ea9a976ad913821b6e256b8a8f2ebeaa104d98bf..97dfafd7e8cee111dc2642f155357ba9bf6437dd 100644 (file)
@@ -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.<String>newArrayList( "test-repo" ) );
     }
 }
\ No newline at end of file
index 6d4b8e22c0cc0fea87d8f4758bf05b14a8e9e033..ef349167556ceb5f8aa957719ea89176a4370eae 100644 (file)
@@ -62,7 +62,7 @@ public class AddRemoteRepositoryActionTest
     }
 
     public void testSecureActionBundle()
-        throws SecureActionException
+        throws Exception
     {
         archivaConfiguration.getConfiguration();
         archivaConfigurationControl.setReturnValue( new Configuration() );