<?xml version="1.0" encoding="UTF-8"?>
<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.teleal.cling</groupId>
        <artifactId>cling</artifactId>
        <version>1.0-alpha3</version>
    </parent>

    <name>Cling Workbench</name>
    <artifactId>cling-workbench</artifactId>
    <packaging>jar</packaging>

    <build>
        <plugins>

            <!-- Package a standalone JAR with all dependencies -->
            <plugin>
                <groupId>org.dstovall</groupId>
                <artifactId>onejar-maven-plugin</artifactId>
                <version>1.4.1</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>one-jar</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <mainClass>org.teleal.cling.workbench.Workbench</mainClass>
                    <attachToBuild>true</attachToBuild>
                    <classifier>standalone</classifier>
                    <filename>${project.build.finalName}-standalone.jar</filename>
                </configuration>
            </plugin>

            <!-- Build an OS X application and disk image -->
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>osxappbundle-maven-plugin</artifactId>
                <version>1.0-alpha-2</version>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>bundle</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <mainClass>org.teleal.cling.workbench.Workbench</mainClass>
                    <iconFile>${basedir}/src/main/resources/WorkbenchIcon.icns</iconFile>
                     <jvmVersion>1.6+</jvmVersion>
                </configuration>
            </plugin>
        </plugins>
    </build>

    <reporting>
        <excludeDefaults>true</excludeDefaults>

        <plugins>

            <!-- We want cross-referenced source code -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jxr-plugin</artifactId>
                <version>2.1</version>
            </plugin>

        </plugins>

    </reporting>

    <dependencies>
        <dependency>
            <groupId>org.teleal.cling</groupId>
            <artifactId>cling-support</artifactId>
            <version>1.0-alpha3</version>
        </dependency>
    </dependencies>

</project>