force jcr save

Signed-off-by: olivier lamy <olamy@apache.org>
This commit is contained in:
olivier lamy 2017-06-24 10:21:14 +10:00
parent 0bfead8264
commit 58ac86f011
3 changed files with 9 additions and 6 deletions

View File

@ -36,6 +36,10 @@
<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>

View 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>

View 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 )
{