mirror of https://github.com/apache/archiva.git
[MRM-1516] missing dependency on velocity - ClassNotFoundException org.apache.velocity.tools.view.ToolboxManager
and fis unit tests. git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1176112 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3c8c0b8554
commit
d3b0682003
|
@ -145,7 +145,7 @@ public class DefaultDownloadRemoteIndexScheduler
|
|||
}
|
||||
|
||||
@PreDestroy
|
||||
private void shutdown()
|
||||
public void shutdown()
|
||||
throws RepositoryAdminException, IOException
|
||||
{
|
||||
for ( RemoteRepository remoteRepository : remoteRepositoryAdmin.getRemoteRepositories() )
|
||||
|
|
|
@ -425,6 +425,22 @@
|
|||
<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 -->
|
||||
|
|
|
@ -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" ) );
|
||||
}
|
||||
}
|
|
@ -62,7 +62,7 @@ public class AddRemoteRepositoryActionTest
|
|||
}
|
||||
|
||||
public void testSecureActionBundle()
|
||||
throws SecureActionException
|
||||
throws Exception
|
||||
{
|
||||
archivaConfiguration.getConfiguration();
|
||||
archivaConfigurationControl.setReturnValue( new Configuration() );
|
||||
|
|
Loading…
Reference in New Issue