]> source.dussan.org Git - archiva.git/commitdiff
force jcr save
authorolivier lamy <olamy@apache.org>
Sat, 24 Jun 2017 00:21:14 +0000 (10:21 +1000)
committerolivier lamy <olamy@apache.org>
Sat, 24 Jun 2017 00:21:14 +0000 (10:21 +1000)
Signed-off-by: olivier lamy <olamy@apache.org>
archiva-modules/archiva-base/archiva-proxy-common/pom.xml
archiva-modules/plugins/metadata-store-jcr/pom.xml
archiva-modules/plugins/metadata-store-jcr/src/test/java/org/apache/archiva/metadata/repository/jcr/JcrMetadataRepositoryTest.java

index 5fa20f65d3d2738d37150f4577eda872ba56ad00..42226575ffe17b08eb7046492258b7219cff3d2d 100644 (file)
       <groupId>org.apache.archiva</groupId>
       <artifactId>archiva-repository-admin-api</artifactId>
     </dependency>
+    <dependency>
+      <groupId>org.apache.maven.archetype</groupId>
+      <artifactId>archetype-common</artifactId>
+    </dependency>
     <dependency>
       <groupId>org.apache.maven.wagon</groupId>
       <artifactId>wagon-provider-api</artifactId>
index 831b639b04804ccb2e94c2acec728f9fb54e6833..94eba17a270bb58f07c466384b82e7aaf9d067cf 100644 (file)
@@ -29,7 +29,7 @@
   <packaging>bundle</packaging>
   <name>Archiva Core Plugins :: JCR Storage for Metadata</name>
   <properties>
-    <jcr-oak.version>1.7.1</jcr-oak.version>
+    <jcr-oak.version>1.7.2</jcr-oak.version>
   </properties>
   <dependencies>
     <dependency>
index a232391f0bdb0364583b19dd93a17e0f8ef2d1c1..e87d53f989b5d25a3a566166d9462cc5eefaaa33 100644 (file)
@@ -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 )
         {