}
@PreDestroy
- private void shutdown()
+ public void shutdown()
throws RepositoryAdminException, IOException
{
for ( RemoteRepository remoteRepository : remoteRepositoryAdmin.getRemoteRepositories() )
<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 -->
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;
throws Exception
{
super.tearDown();
+ applicationContext.getBean( DefaultDownloadRemoteIndexScheduler.class ).shutdown();
setObservableRepos( Lists.<String>newArrayList( "test-repo" ) );
}
}
\ No newline at end of file
}
public void testSecureActionBundle()
- throws SecureActionException
+ throws Exception
{
archivaConfiguration.getConfiguration();
archivaConfigurationControl.setReturnValue( new Configuration() );