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>
|
||||
<name>Archiva Repository Interface Layer</name>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>commons-lang</groupId>
|
||||
<artifactId>commons-lang</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.archiva</groupId>
|
||||
<artifactId>archiva-model</artifactId>
|
||||
|
|
|
@ -51,27 +51,4 @@
|
|||
<scope>test</scope>
|
||||
</dependency>
|
||||
</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>
|
||||
|
|
|
@ -44,13 +44,14 @@ import org.springframework.stereotype.Service;
|
|||
|
||||
import javax.annotation.PostConstruct;
|
||||
import javax.inject.Inject;
|
||||
import javax.inject.Named;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* ArchivaRepositoryScanningTaskExecutor
|
||||
*
|
||||
* @version $Id$
|
||||
* @plexus.component role="org.codehaus.plexus.taskqueue.execution.TaskExecutor"
|
||||
* plexus.component role="org.codehaus.plexus.taskqueue.execution.TaskExecutor"
|
||||
* role-hint="repository-scanning"
|
||||
*/
|
||||
@Service("taskExecutor#repository-scanning")
|
||||
|
@ -63,6 +64,7 @@ public class ArchivaRepositoryScanningTaskExecutor
|
|||
* plexus.requirement
|
||||
*/
|
||||
@Inject
|
||||
@Named(value="archivaConfiguration#default")
|
||||
private ArchivaConfiguration archivaConfiguration;
|
||||
|
||||
/**
|
||||
|
|
|
@ -57,7 +57,7 @@ import java.util.Set;
|
|||
/**
|
||||
* 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")
|
||||
public class RepositoryArchivaTaskScheduler
|
||||
|
@ -87,6 +87,7 @@ public class RepositoryArchivaTaskScheduler
|
|||
* plexus.requirement
|
||||
*/
|
||||
@Inject
|
||||
@Named(value = "repositoryStatisticsManager#default")
|
||||
private RepositoryStatisticsManager repositoryStatisticsManager;
|
||||
|
||||
/**
|
||||
|
|
|
@ -65,6 +65,7 @@ public class ArchivaRepositoryScanningTaskExecutorTest
|
|||
private ArchivaConfiguration archivaConfig;
|
||||
|
||||
@Inject
|
||||
@Named(value = "repositoryStatisticsManager#test")
|
||||
private RepositoryStatisticsManager repositoryStatisticsManager;
|
||||
|
||||
@Inject
|
||||
|
|
|
@ -38,6 +38,8 @@
|
|||
<property name="archivaConfiguration" ref="archivaConfiguration#test-repository-scanning"/>
|
||||
</bean>
|
||||
|
||||
<alias name="repositoryStatisticsManager#test" alias="repositoryStatisticsManager#default"/>
|
||||
|
||||
<!--
|
||||
<component>
|
||||
<role>org.codehaus.plexus.taskqueue.execution.TaskExecutor</role>
|
||||
|
@ -81,5 +83,6 @@
|
|||
</value>
|
||||
</property>
|
||||
</bean>
|
||||
<alias name="archivaConfiguration#test-repository-scanning" alias="archivaConfiguration#default"/>
|
||||
|
||||
</beans>
|
Loading…
Reference in New Issue