diff options
author | Olivier Lamy <olamy@apache.org> | 2014-03-28 11:43:24 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2014-03-28 11:43:24 +0000 |
commit | bef128817d76a8aac1fa575df8197f8af5a62921 (patch) | |
tree | 8eef57af1b1bc9ac655d485aa267b88787f93c28 /archiva-modules/archiva-scheduler | |
parent | d4aee19ee6b233bff720ac573106565a2d0976b7 (diff) | |
download | archiva-bef128817d76a8aac1fa575df8197f8af5a62921.tar.gz archiva-bef128817d76a8aac1fa575df8197f8af5a62921.zip |
move the factory bean to the api
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1582713 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-scheduler')
3 files changed, 11 insertions, 1 deletions
diff --git a/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/pom.xml b/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/pom.xml index 18e2e6642..6f6c3ed34 100644 --- a/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/pom.xml +++ b/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/pom.xml @@ -236,6 +236,7 @@ <redback.jdbc.url>${redbackTestJdbcUrl}</redback.jdbc.url> <redback.jdbc.driver.name>${redbackTestJdbcDriver}</redback.jdbc.driver.name> <basedir>${basedir}</basedir> + <archiva.repositorySessionFactory.id>mock</archiva.repositorySessionFactory.id> </systemPropertyVariables> </configuration> </plugin> diff --git a/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/test/java/org/apache/archiva/scheduler/indexing/mock/MockRepositorySessionFactory.java b/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/test/java/org/apache/archiva/scheduler/indexing/mock/MockRepositorySessionFactory.java index 85c01299a..5776681d5 100644 --- a/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/test/java/org/apache/archiva/scheduler/indexing/mock/MockRepositorySessionFactory.java +++ b/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/test/java/org/apache/archiva/scheduler/indexing/mock/MockRepositorySessionFactory.java @@ -38,7 +38,7 @@ import java.util.List; /** * @author Olivier Lamy */ -@Service( "RepositorySessionFactory#mock" ) +@Service( "repositorySessionFactory#mock" ) public class MockRepositorySessionFactory implements RepositorySessionFactory { diff --git a/archiva-modules/archiva-scheduler/archiva-scheduler-repository/pom.xml b/archiva-modules/archiva-scheduler/archiva-scheduler-repository/pom.xml index b3dad9ce1..b152f2fec 100644 --- a/archiva-modules/archiva-scheduler/archiva-scheduler-repository/pom.xml +++ b/archiva-modules/archiva-scheduler/archiva-scheduler-repository/pom.xml @@ -171,6 +171,15 @@ </excludes> </configuration> </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <configuration> + <systemPropertyVariables> + <archiva.repositorySessionFactory.id>test</archiva.repositorySessionFactory.id> + </systemPropertyVariables> + </configuration> + </plugin> </plugins> </pluginManagement> </build> |