From: olivier lamy Date: Sat, 24 Jun 2017 00:21:14 +0000 (+1000) Subject: force jcr save X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=58ac86f011603664b34dfc5089c1a998d7fdbbc9;p=archiva.git force jcr save Signed-off-by: olivier lamy --- diff --git a/archiva-modules/archiva-base/archiva-proxy-common/pom.xml b/archiva-modules/archiva-base/archiva-proxy-common/pom.xml index 5fa20f65d..42226575f 100644 --- a/archiva-modules/archiva-base/archiva-proxy-common/pom.xml +++ b/archiva-modules/archiva-base/archiva-proxy-common/pom.xml @@ -36,6 +36,10 @@ org.apache.archiva archiva-repository-admin-api + + org.apache.maven.archetype + archetype-common + org.apache.maven.wagon wagon-provider-api diff --git a/archiva-modules/plugins/metadata-store-jcr/pom.xml b/archiva-modules/plugins/metadata-store-jcr/pom.xml index 831b639b0..94eba17a2 100644 --- a/archiva-modules/plugins/metadata-store-jcr/pom.xml +++ b/archiva-modules/plugins/metadata-store-jcr/pom.xml @@ -29,7 +29,7 @@ bundle Archiva Core Plugins :: JCR Storage for Metadata - 1.7.1 + 1.7.2 diff --git a/archiva-modules/plugins/metadata-store-jcr/src/test/java/org/apache/archiva/metadata/repository/jcr/JcrMetadataRepositoryTest.java b/archiva-modules/plugins/metadata-store-jcr/src/test/java/org/apache/archiva/metadata/repository/jcr/JcrMetadataRepositoryTest.java index a232391f0..e87d53f98 100644 --- a/archiva-modules/plugins/metadata-store-jcr/src/test/java/org/apache/archiva/metadata/repository/jcr/JcrMetadataRepositoryTest.java +++ b/archiva-modules/plugins/metadata-store-jcr/src/test/java/org/apache/archiva/metadata/repository/jcr/JcrMetadataRepositoryTest.java @@ -19,7 +19,6 @@ package org.apache.archiva.metadata.repository.jcr; * under the License. */ -import com.google.common.base.Objects; import org.apache.archiva.metadata.model.MetadataFacetFactory; import org.apache.archiva.metadata.repository.AbstractMetadataRepositoryTest; import org.apache.commons.io.FileUtils; @@ -29,13 +28,13 @@ import org.junit.Before; import org.junit.BeforeClass; import org.springframework.context.ApplicationContext; -import java.io.File; -import java.io.IOException; -import java.util.Map; import javax.inject.Inject; import javax.jcr.Repository; import javax.jcr.RepositoryException; import javax.jcr.Session; +import java.io.File; +import java.io.IOException; +import java.util.Map; public class JcrMetadataRepositoryTest extends AbstractMetadataRepositoryTest @@ -58,7 +57,6 @@ public class JcrMetadataRepositoryTest RepositoryFactory factory = new RepositoryFactory(); factory.setRepositoryPath( directory.getPath() ); jcrRepository = factory.createRepository(); - } @Before @@ -83,6 +81,7 @@ public class JcrMetadataRepositoryTest // removing content is faster than deleting and re-copying the files from target/jcr session.getRootNode().getNode( "repositories" ).remove(); + session.save(); } catch ( RepositoryException e ) {