Commit 8640c707 authored by Matija Obreza's avatar Matija Obreza
Browse files

Multi project setup (closes #1)

parent 6fc3625a
# Genesys File Repository
# Simple File Repository
The project implements a very simple DublinCore based file repository system.
**file-repository** library provides basic file repository
functionality, using a basic set of DublinCore metadata.
# Migration
## From 0.8
## Using file-repository
Add the dependency to your pom.xml:
<dependency>
<groupId>org.genesys-pgr</groupId>
<artifactId>file-repository</artifactId>
<version>X.Y.Z</version>
</dependency>
## Using the S3 as bytes storage
Adjust the configuration in application.properties file and use the S3StorageServiceImpl as
the BytesStorageService of the RepositoryServiceImpl.
#AWS parameter values
s3.accessKey=AKIAJQCIQYDRXEXAMPLE
s3.secretKey=dCWEXAMPLEXQMLl/d+U2EdEXAMPLEcIy7HONnPDR
s3.bucket=bucketname
s3.region=eu-west-1
Make sure these credentials have read, write and delete permissions on the selected bucket.
Version **0.9** introduces a breaking change in dependencies. Replace `file-repository` dependency with `file-repository-core`.
# Simple File Repository
**file-repository** library provides basic file repository
functionality, using a basic set of DublinCore metadata.
## Using file-repository
Add the dependency to your pom.xml:
<dependency>
<groupId>org.genesys-pgr</groupId>
<artifactId>file-repository</artifactId>
<version>X.Y.Z</version>
</dependency>
## Using the S3 as bytes storage
Adjust the configuration in application.properties file and use the S3StorageServiceImpl as
the BytesStorageService of the RepositoryServiceImpl.
#AWS parameter values
s3.accessKey=AKIAJQCIQYDRXEXAMPLE
s3.secretKey=dCWEXAMPLEXQMLl/d+U2EdEXAMPLEcIy7HONnPDR
s3.bucket=bucketname
s3.region=eu-west-1
Make sure these credentials have read, write and delete permissions on the selected bucket.
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2014 Global Crop Diversity Trust
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.genesys-pgr</groupId>
<artifactId>file-repository</artifactId>
<version>0.9-SNAPSHOT</version>
</parent>
<artifactId>file-repository-core</artifactId>
<name>Genesys File Repository</name>
<description>Simple DublinCore file repository</description>
<properties>
<commons.io.version>2.4</commons.io.version>
<spring.framework.version>4.2.5.RELEASE</spring.framework.version>
<hibernate.version>4.3.11.Final</hibernate.version>
<hsqldb.version>2.3.3</hsqldb.version>
</properties>
<dependencies>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>${commons.io.version}</version>
</dependency>
<!-- Spring dependencies -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aop</artifactId>
<version>${spring.framework.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aspects</artifactId>
<version>${spring.framework.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context-support</artifactId>
<version>${spring.framework.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-orm</artifactId>
<version>${spring.framework.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-tx</artifactId>
<version>${spring.framework.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>${spring.framework.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<version>${spring.framework.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-jpa</artifactId>
<version>1.10.1.RELEASE</version>
</dependency>
<!-- Hibernate dependencies -->
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-entitymanager</artifactId>
<version>4.3.11.Final</version>
</dependency>
<dependency>
<groupId>org.hsqldb</groupId>
<artifactId>hsqldb</artifactId>
<version>${hsqldb.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.7.21</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>net.coobird</groupId>
<artifactId>thumbnailator</artifactId>
<version>0.4.8</version>
</dependency>
<dependency>
<!-- For SHA1 and MD5 -->
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.10</version>
</dependency>
</dependencies>
</project>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment