<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>
    <groupId>org.gcube.data-access</groupId>
    <artifactId>sh-fuse-integration</artifactId>
    <version>2.1.0-SNAPSHOT</version>
    <name>SHFuseIntegration</name>

    <parent>
        <artifactId>maven-parent</artifactId>
        <groupId>org.gcube.tools</groupId>
        <version>1.2.0</version>
        <relativePath/>
    </parent>

    <scm>
        <connection>scm:git:https://code-repo.d4science.org/gCubeSystem/sh-fuse-integration.git</connection>
        <developerConnection>scm:git:https://code-repo.d4science.org/gCubeSystem/sh-fuse-integration.git
        </developerConnection>
        <url>https://code-repo.d4science.org/gCubeSystem/sh-fuse-integration</url>
    </scm>

    <properties>
        <maven.compiler.source>1.8</maven.compiler.source>
        <maven.compiler.target>1.8</maven.compiler.target>
    </properties>

    <repositories>
        <repository>
            <id>central</id>
            <name>bintray</name>
            <url>https://jcenter.bintray.com</url>
        </repository>
    </repositories>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.gcube.distribution</groupId>
                <artifactId>gcube-bom</artifactId>
                <version>2.4.1-SNAPSHOT</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <dependencies>
        <dependency>
            <groupId>com.github.serceman</groupId>
            <artifactId>jnr-fuse</artifactId>
            <version>0.5.8</version>
        </dependency>
        <dependency>
            <groupId>org.gcube.common</groupId>
            <artifactId>gxJRS</artifactId>
        </dependency>

        <dependency>
            <groupId>org.gcube.common</groupId>
            <artifactId>common-authorization</artifactId>
        </dependency>

        <dependency>
            <groupId>org.gcube.common</groupId>
            <artifactId>storagehub-client-library</artifactId>
        </dependency>
        <dependency>
            <groupId>org.gcube.common</groupId>
            <artifactId>storagehub-model</artifactId>
        </dependency>
        <dependency>
            <groupId>org.gcube.core</groupId>
            <artifactId>common-gcube-calls</artifactId>
        </dependency>
        <dependency>
            <groupId>org.cache2k</groupId>
            <artifactId>cache2k-jcache</artifactId>
            <version>1.2.0.Final</version>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
        </dependency>

        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.11</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>ch.qos.logback</groupId>
            <artifactId>logback-classic</artifactId>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-assembly-plugin</artifactId>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>single</goal>
                        </goals>
                        <configuration>
                            <archive>
                                <manifest>
                                    <mainClass>org.gcube.data.access.storagehub.fs.StorageHubFuseLauncher
                                    </mainClass>
                                </manifest>
                            </archive>
                            <descriptorRefs>
                                <descriptorRef>jar-with-dependencies</descriptorRef>
                            </descriptorRefs>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <target>1.8</target>
                    <source>1.8</source>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>