diff --git a/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/main/java/org/apache/archiva/admin/repository/managed/DefaultManagedRepositoryAdmin.java b/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/main/java/org/apache/archiva/admin/repository/managed/DefaultManagedRepositoryAdmin.java index 9f2367490..f1ad9c598 100644 --- a/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/main/java/org/apache/archiva/admin/repository/managed/DefaultManagedRepositoryAdmin.java +++ b/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/main/java/org/apache/archiva/admin/repository/managed/DefaultManagedRepositoryAdmin.java @@ -515,7 +515,7 @@ public class DefaultManagedRepositoryAdmin } configuration.addManagedRepository( repository ); - + } public IndexingContext createIndexContext( ManagedRepository repository ) @@ -541,6 +541,10 @@ public class DefaultManagedRepositoryAdmin if ( indexDir != null && !"".equals( indexDir ) ) { indexDirectory = new File( repository.getIndexDirectory() ); + if ( !indexDirectory.isAbsolute() ) + { + indexDirectory = new File( managedRepository, repository.getIndexDirectory() ); + } } else {