mirror of https://github.com/apache/archiva.git
fix unit tests spring configuration in archiva-scheduler-repository
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1128204 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
998a5ac24e
commit
63af39fba0
|
@ -29,6 +29,10 @@
|
||||||
<artifactId>archiva-repository-layer</artifactId>
|
<artifactId>archiva-repository-layer</artifactId>
|
||||||
<name>Archiva Repository Interface Layer</name>
|
<name>Archiva Repository Interface Layer</name>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>commons-lang</groupId>
|
||||||
|
<artifactId>commons-lang</artifactId>
|
||||||
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.archiva</groupId>
|
<groupId>org.apache.archiva</groupId>
|
||||||
<artifactId>archiva-model</artifactId>
|
<artifactId>archiva-model</artifactId>
|
||||||
|
|
|
@ -51,27 +51,4 @@
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<build>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.codehaus.plexus</groupId>
|
|
||||||
<artifactId>plexus-component-metadata</artifactId>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>merge</id>
|
|
||||||
<phase>process-resources</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>merge-metadata</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
|
||||||
<descriptors>
|
|
||||||
<descriptor>${basedir}/src/main/components-fragment.xml</descriptor>
|
|
||||||
<descriptor>${project.build.outputDirectory}/META-INF/plexus/components.xml</descriptor>
|
|
||||||
</descriptors>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -44,13 +44,14 @@ import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
import javax.annotation.PostConstruct;
|
import javax.annotation.PostConstruct;
|
||||||
import javax.inject.Inject;
|
import javax.inject.Inject;
|
||||||
|
import javax.inject.Named;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ArchivaRepositoryScanningTaskExecutor
|
* ArchivaRepositoryScanningTaskExecutor
|
||||||
*
|
*
|
||||||
* @version $Id$
|
* @version $Id$
|
||||||
* @plexus.component role="org.codehaus.plexus.taskqueue.execution.TaskExecutor"
|
* plexus.component role="org.codehaus.plexus.taskqueue.execution.TaskExecutor"
|
||||||
* role-hint="repository-scanning"
|
* role-hint="repository-scanning"
|
||||||
*/
|
*/
|
||||||
@Service("taskExecutor#repository-scanning")
|
@Service("taskExecutor#repository-scanning")
|
||||||
|
@ -63,6 +64,7 @@ public class ArchivaRepositoryScanningTaskExecutor
|
||||||
* plexus.requirement
|
* plexus.requirement
|
||||||
*/
|
*/
|
||||||
@Inject
|
@Inject
|
||||||
|
@Named(value="archivaConfiguration#default")
|
||||||
private ArchivaConfiguration archivaConfiguration;
|
private ArchivaConfiguration archivaConfiguration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -57,7 +57,7 @@ import java.util.Set;
|
||||||
/**
|
/**
|
||||||
* Default implementation of a scheduling component for archiva.
|
* Default implementation of a scheduling component for archiva.
|
||||||
*
|
*
|
||||||
* @plexus.component role="org.apache.archiva.scheduler.ArchivaTaskScheduler" role-hint="repository"
|
* plexus.component role="org.apache.archiva.scheduler.ArchivaTaskScheduler" role-hint="repository"
|
||||||
*/
|
*/
|
||||||
@Service("archivaTaskScheduler#repository")
|
@Service("archivaTaskScheduler#repository")
|
||||||
public class RepositoryArchivaTaskScheduler
|
public class RepositoryArchivaTaskScheduler
|
||||||
|
@ -87,6 +87,7 @@ public class RepositoryArchivaTaskScheduler
|
||||||
* plexus.requirement
|
* plexus.requirement
|
||||||
*/
|
*/
|
||||||
@Inject
|
@Inject
|
||||||
|
@Named(value = "repositoryStatisticsManager#default")
|
||||||
private RepositoryStatisticsManager repositoryStatisticsManager;
|
private RepositoryStatisticsManager repositoryStatisticsManager;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -65,6 +65,7 @@ public class ArchivaRepositoryScanningTaskExecutorTest
|
||||||
private ArchivaConfiguration archivaConfig;
|
private ArchivaConfiguration archivaConfig;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
|
@Named(value = "repositoryStatisticsManager#test")
|
||||||
private RepositoryStatisticsManager repositoryStatisticsManager;
|
private RepositoryStatisticsManager repositoryStatisticsManager;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
|
|
|
@ -38,6 +38,8 @@
|
||||||
<property name="archivaConfiguration" ref="archivaConfiguration#test-repository-scanning"/>
|
<property name="archivaConfiguration" ref="archivaConfiguration#test-repository-scanning"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
|
<alias name="repositoryStatisticsManager#test" alias="repositoryStatisticsManager#default"/>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
<component>
|
<component>
|
||||||
<role>org.codehaus.plexus.taskqueue.execution.TaskExecutor</role>
|
<role>org.codehaus.plexus.taskqueue.execution.TaskExecutor</role>
|
||||||
|
@ -81,5 +83,6 @@
|
||||||
</value>
|
</value>
|
||||||
</property>
|
</property>
|
||||||
</bean>
|
</bean>
|
||||||
|
<alias name="archivaConfiguration#test-repository-scanning" alias="archivaConfiguration#default"/>
|
||||||
|
|
||||||
</beans>
|
</beans>
|
Loading…
Reference in New Issue