<?xml version="1.0" encoding="UTF-8"?>
<!--
  - Copyright (C) 2011 Schlichtherle IT Services
  -
  - 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>de.schlichtherle.truezip</groupId>
        <artifactId>truezip</artifactId>
        <version>7.1.2</version>
    </parent>

    <artifactId>truezip-file</artifactId>

    <name>TrueZIP File*</name>
    <description>
        This module provides uniform, transparent, thread-safe,
        read/write access to archive files as if they were just plain
        directories in a file system path by means of the TFile* classes
        and their dependent classes.

        This module also provides Swing GUI classes for viewing file trees
        and choosing entries in archive files.
    </description>

    <dependencies>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>truezip-kernel</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>truezip-kernel</artifactId>
            <version>${project.version}</version>
            <type>test-jar</type>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.netbeans</groupId>
            <artifactId>jemmy</artifactId>
        </dependency>
    </dependencies>

    <profiles>
        <profile>
            <id>truezip-driver-file</id>
            <activation>
                <!--jdk>(,1.7)</jdk-->
                <jdk>[1.6,)</jdk>
            </activation>
            <dependencies>
                <!-- The file system driver for the file scheme in JSE 6.
                     Without this run-time dependency an application couldn't
                     resolve the file scheme in URIs like
                     "zip:file:/archive.zip!/entry" etc. -->
                <dependency>
                    <groupId>${project.groupId}</groupId>
                    <artifactId>truezip-driver-file</artifactId>
                </dependency>
            </dependencies>
        </profile>
        <profile>
            <id>truezip-driver-file-jse7</id>
            <activation>
                <jdk>[1.7,)</jdk>
            </activation>
            <dependencies>
                <!-- The file system driver for the file scheme in JSE 7+.
                     Without this run-time dependency an application couldn't
                     resolve the file scheme in URIs like
                     "zip:file:/archive.zip!/entry" etc. -->
                <!--dependency>
                    <groupId>${project.groupId}</groupId>
                    <artifactId>truezip-driver-file-jse7</artifactId>
                </dependency-->
            </dependencies>
        </profile>
    </profiles>

    <build>
        <plugins>
            <plugin>
                <artifactId>maven-jar-plugin</artifactId>
                <executions>
                    <execution>
                        <goals>
                            <goal>test-jar</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
</project>
