diff options
Diffstat (limited to 'archiva-modules/archiva-web')
-rw-r--r-- | archiva-modules/archiva-web/archiva-webdav/pom.xml | 1 | ||||
-rw-r--r-- | archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/AbstractRepositoryServletTestCase.java | 8 |
2 files changed, 7 insertions, 2 deletions
diff --git a/archiva-modules/archiva-web/archiva-webdav/pom.xml b/archiva-modules/archiva-web/archiva-webdav/pom.xml index 79a8e9def..37cb92a27 100644 --- a/archiva-modules/archiva-web/archiva-webdav/pom.xml +++ b/archiva-modules/archiva-web/archiva-webdav/pom.xml @@ -332,6 +332,7 @@ <openjpa.Log>${openjpa.Log}</openjpa.Log> <org.apache.jackrabbit.core.state.validatehierarchy>true</org.apache.jackrabbit.core.state.validatehierarchy> </systemPropertyVariables> + <trimStackTrace>false</trimStackTrace> </configuration> </plugin> </plugins> diff --git a/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/AbstractRepositoryServletTestCase.java b/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/AbstractRepositoryServletTestCase.java index 2d2b42c4f..2094ba34d 100644 --- a/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/AbstractRepositoryServletTestCase.java +++ b/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/AbstractRepositoryServletTestCase.java @@ -190,7 +190,9 @@ public abstract class AbstractRepositoryServletTestCase ArchivaIndexingContext ctx = repositoryRegistry.getManagedRepository( REPOID_INTERNAL ).getIndexingContext( ); try { - repositoryRegistry.getIndexManager( RepositoryType.MAVEN ).pack( ctx ); + if (repositoryRegistry.getIndexManager(RepositoryType.MAVEN)!=null) { + repositoryRegistry.getIndexManager(RepositoryType.MAVEN).pack(ctx); + } } finally { ctx.close( ); @@ -810,6 +812,8 @@ public abstract class AbstractRepositoryServletTestCase repo.setLocation( location.toAbsolutePath().toString() ); repo.setBlockRedeployments( blockRedeployments ); repo.setType( "MAVEN" ); + repo.setIndexDir(".indexer"); + repo.setPackedIndexDir(".index"); return repo; } @@ -835,7 +839,7 @@ public abstract class AbstractRepositoryServletTestCase throws Exception { repositoryRegistry.setArchivaConfiguration(archivaConfiguration); - repositoryRegistry.reload(); + // repositoryRegistry.reload(); archivaConfiguration.save( archivaConfiguration.getConfiguration() ); } |