<?xml version="1.0" encoding="UTF-8"?>
<!-- ======================================================================= 
    Maven Project Configuration File The SLDEditor Project http://www.geotools.org/ 
    Version: $Id$ ======================================================================= -->
<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/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <parent>
        <groupId>org.geotools.maven</groupId>
        <artifactId>maven</artifactId>
        <version>15-SNAPSHOT</version>
    </parent>


    <!-- =========================================================== -->
    <!-- Module Description -->
    <!-- =========================================================== -->
    <groupId>org.sldeditor.maven</groupId>
    <artifactId>javadoc</artifactId>
    <packaging>jar</packaging>
    <name>Cross-modules javadoc</name>
    <description>
    Defines custom taglet for 'source' and 'tutorial' javadoc tags and for the 
    'code' javadoc inline tag.
    </description>

    <licenses>
        <license>
            <name>Lesser General Public License (LGPL)</name>
            <url>http://www.gnu.org/copyleft/lesser.txt</url>
            <distribution>repo</distribution>
        </license>
    </licenses>


    <!-- =========================================================== -->
    <!-- Developers and Contributors -->
    <!-- =========================================================== -->
    <developers>
        <developer>
            <name>Robert Ward</name>
            <email>robert.ward@scisys.co.uk</email>
            <organization>SCISYS</organization>
            <organizationUrl>http://www.scisys.co.uk/</organizationUrl>
            <timezone>Europe/London</timezone>
            <roles>
                <role>Architect</role>
                <role>Java Developer</role>
            </roles>
        </developer>
    </developers>

    <build>
        <plugins>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>exec-maven-plugin</artifactId>
                <version>1.2</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>java</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <mainClass>org.geotools.maven.tools.InsertSourceTag</mainClass>
                </configuration>
            </plugin>
        </plugins>
    </build>

    <profiles>
        <!-- =========================================================== -->
        <!-- Sun's tools dependency (pre JDK 1.7) -->
        <!-- =========================================================== -->
        <profile>
            <id>default-tools.jar</id>
            <activation>
                <property>
                    <name>java.vendor</name>
                    <value>Sun Microsystems Inc.</value>
                </property>
            </activation>
            <dependencies>
                <dependency>
                    <groupId>com.sun</groupId>
                    <artifactId>tools</artifactId>
                    <version>1.5</version>
                    <scope>system</scope>
                    <systemPath>${java.home}/../lib/tools.jar</systemPath>
                    <!-- Note: a ${tools.jar} variable exists - we should 
                        try to use it. -->
                </dependency>
            </dependencies>
        </profile>

        <!-- =========================================================== -->
        <!-- Oracle tools dependency (JDK 7+) -->
        <!-- =========================================================== -->
        <profile>
            <id>jdk-7-default-tools.jar</id>
            <activation>
                <property>
                    <name>java.vendor</name>
                    <value>Oracle Corporation</value>
                </property>
            </activation>
            <dependencies>
                <dependency>
                    <groupId>com.sun</groupId>
                    <artifactId>tools</artifactId>
                    <version>1.5</version>
                    <scope>system</scope>
                    <systemPath>${java.home}/../lib/tools.jar</systemPath>
                    <!-- Note: a ${tools.jar} variable exists - we should 
                        try to use it. -->
                </dependency>
            </dependencies>
        </profile>

        <!-- =========================================================== -->
        <!-- IBM's tools dependency -->
        <!-- =========================================================== -->
        <profile>
            <id>ibm-default-tools.jar</id>
            <activation>
                <property>
                    <name>java.vendor</name>
                    <value>IBM Corporation</value>
                </property>
            </activation>
            <dependencies>
                <dependency>
                    <groupId>com.sun</groupId>
                    <artifactId>tools</artifactId>
                    <version>1.5</version>
                    <scope>system</scope>
                    <systemPath>${java.home}/../lib/tools.jar</systemPath>
                    <!-- Note: a ${tools.jar} variable exists - we should 
                        try to use it. -->
                </dependency>
            </dependencies>
        </profile>

        <!-- =========================================================== -->
        <!-- Google' tools dependency -->
        <!-- =========================================================== -->
        <profile>
            <id>google-jdk-default-tools.jar</id>
            <activation>
                <property>
                    <name>java.vendor</name>
                    <value>Google Inc.</value>
                </property>
            </activation>
            <dependencies>
                <dependency>
                    <groupId>com.sun</groupId>
                    <artifactId>tools</artifactId>
                    <version>1.5</version>
                    <scope>system</scope>
                    <systemPath>${java.home}/../lib/tools.jar</systemPath>
                </dependency>
            </dependencies>
        </profile>
    </profiles>
</project>
