diff --git a/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/test/java/org/apache/archiva/scheduler/indexing/ArchivaIndexingTaskExecutorTest.java b/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/test/java/org/apache/archiva/scheduler/indexing/ArchivaIndexingTaskExecutorTest.java index aff511520..f684abf15 100644 --- a/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/test/java/org/apache/archiva/scheduler/indexing/ArchivaIndexingTaskExecutorTest.java +++ b/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/test/java/org/apache/archiva/scheduler/indexing/ArchivaIndexingTaskExecutorTest.java @@ -88,7 +88,8 @@ public class ArchivaIndexingTaskExecutorTest repositoryConfig = new ManagedRepository(); repositoryConfig.setId( "test-repo" ); - repositoryConfig.setLocation( "target/test-classes/test-repo" ); + repositoryConfig.setLocation( + new File( System.getProperty( "basedir" ), "target/test-classes/test-repo" ).getAbsolutePath() ); repositoryConfig.setLayout( "default" ); repositoryConfig.setName( "Test Repository" ); repositoryConfig.setScanned( true );