<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>
  <groupId>net.disy.legato</groupId>
  <artifactId>legato-parent</artifactId>
  <version>1.1.1</version>
  <packaging>pom</packaging>
  <name>Legato Parent</name>
  <url>http://www.legato.net</url>
  <description>Legato is a configurable, lightweight web mapping client that can be easily embedded into web pages and portals, CMS and individual web applications. Legato is implemented in JavaScript and based on the popular open source library OpenLayers.</description>
  <parent>
    <groupId>net.disy.legato</groupId>
    <artifactId>legato-project</artifactId>
    <version>1</version>
  </parent>
  <modules>
    <module>../legato-testing</module>
    <module>../legato-tools</module>
    <module>../legato-openlayers</module>
    <module>../legato-jquery</module>
    <module>../legato-sandbox</module>
    <module>../legato-scripts</module>
    <module>../legato-demo-dev</module>
    <module>../legato-demo</module>
  </modules>
  <scm>
    <connection>scm:svn:https://legato.svn.sourceforge.net/svnroot/legato/legato-core/tags/1.1.1/legato-parent</connection>
    <developerConnection>scm:svn:https://legato.svn.sourceforge.net/svnroot/legato/legato-core/tags/1.1.1/legato-parent</developerConnection>
    <url>http://legato.svn.sourceforge.net/viewvc/legato/legato-core/tags/1.1.1/legato-parent</url>
  </scm>
  <properties>
    <tomcat.version>6.0.29</tomcat.version>
    <target.dir>target</target.dir>
  </properties>
  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
    </dependency>
  </dependencies>
  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>com.sun.xml.bind</groupId>
        <artifactId>jaxb-impl</artifactId>
        <version>2.1.13</version>
      </dependency>
      <dependency>
        <groupId>org.mortbay.jetty</groupId>
        <artifactId>jetty</artifactId>
        <version>6.1.11</version>
      </dependency>
      <dependency>
        <groupId>org.seleniumhq.selenium.client-drivers</groupId>
        <artifactId>selenium-java-client-driver</artifactId>
        <version>1.0.2</version>
      </dependency>
      <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>4.5</version>
        <scope>test</scope>
      </dependency>
      <dependency>
        <groupId>commons-io</groupId>
        <artifactId>commons-io</artifactId>
        <version>1.4</version>
      </dependency>
      <dependency>
        <groupId>commons-lang</groupId>
        <artifactId>commons-lang</artifactId>
        <version>2.4</version>
      </dependency>
      <dependency>
        <groupId>commons-httpclient</groupId>
        <artifactId>commons-httpclient</artifactId>
        <version>3.1</version>
      </dependency>
      <dependency>
        <groupId>commons-logging</groupId>
        <artifactId>commons-logging</artifactId>
        <version>1.1</version>
        <exclusions>
          <exclusion>
            <groupId>log4j</groupId>
            <artifactId>log4j</artifactId>
          </exclusion>
          <exclusion>
            <groupId>logkit</groupId>
            <artifactId>logkit</artifactId>
          </exclusion>
          <exclusion>
            <groupId>avalon-framework</groupId>
            <artifactId>avalon-framework</artifactId>
          </exclusion>
          <exclusion>
            <groupId>javax.servlet</groupId>
            <artifactId>servlet-api</artifactId>
          </exclusion>
        </exclusions>
      </dependency>
      <dependency>
        <groupId>log4j</groupId>
        <artifactId>log4j</artifactId>
        <version>1.2.13</version>
      </dependency>
      <dependency>
        <groupId>net.sourceforge.collections</groupId>
        <artifactId>collections-generic</artifactId>
        <version>4.01</version>
      </dependency>
    </dependencies>
  </dependencyManagement>
  <build>
    <defaultGoal>install</defaultGoal>
    <outputDirectory>${basedir}/${target.dir}/classes</outputDirectory>
    <testOutputDirectory>${basedir}/${target.dir}/test-classes</testOutputDirectory>
    <resources>
      <resource>
        <directory>src/main/javascript</directory>
      </resource>
      <resource>
        <directory>src/main/resources</directory>
      </resource>
    </resources>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-source-plugin</artifactId>
        <version>2.1.2</version>
        <inherited>true</inherited>
        <executions>
          <execution>
            <id>attach-sources</id>
            <goals>
              <goal>jar</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <inherited>true</inherited>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>2.3.2</version>
        <configuration>
          <source>1.6</source>
          <target>1.6</target>
        </configuration>
      </plugin>

      <plugin>
        <inherited>true</inherited>
        <artifactId>maven-antrun-plugin</artifactId>
        <version>1.3</version>
        <executions>

          <execution>
            <id>naturaldocs-initialize</id>
            <phase>none</phase>
            <configuration>
              <tasks>
                <mkdir dir="target/generated-docs/naturaldocs" />
              </tasks>
            </configuration>
            <goals>
              <goal>run</goal>
            </goals>
          </execution>

          <execution>
            <id>naturaldocs-package</id>
            <phase>none</phase>
            <configuration>
              <tasks>
                <zip destfile="target/${project.artifactId}-${project.version}-naturaldocs.zip" basedir="target/generated-docs/naturaldocs">
                </zip>
              </tasks>
            </configuration>
            <goals>
              <goal>run</goal>
            </goals>
          </execution>

          <execution>
            <id>naturaldocs-pre-site</id>
            <phase>none</phase>
            <configuration>
              <tasks>
                <mkdir dir="target/site/naturaldocs" />
              </tasks>
            </configuration>
            <goals>
              <goal>run</goal>
            </goals>
          </execution>
        </executions>
      </plugin>

      <plugin>
        <inherited>true</inherited>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>exec-maven-plugin</artifactId>
        <version>1.1.1</version>
        <executions>
          <execution>
            <id>naturaldocs-process-sources</id>
            <phase>none</phase>
            <goals>
              <goal>exec</goal>
            </goals>
            <configuration>
              <executable>${naturaldocs.executable}</executable>
              <arguments>
                <argument>-r</argument>
                <argument>-i</argument>
                <argument>src/main/javascript</argument>
                <argument>-o</argument>
                <argument>FramedHTML</argument>
                <argument>target/generated-docs/naturaldocs</argument>
                <argument>-p</argument>
                <argument>src/site/naturaldocs</argument>
                <argument>-s</argument>
                <argument>Default</argument>
                <argument>Customized</argument>
              </arguments>
            </configuration>
          </execution>
          <execution>
            <id>naturaldocs-site</id>
            <phase>none</phase>
            <goals>
              <goal>exec</goal>
            </goals>
            <configuration>
              <executable>${naturaldocs.executable}</executable>
              <arguments>
                <argument>-r</argument>
                <argument>-i</argument>
                <argument>src/main/javascript</argument>
                <argument>-o</argument>
                <argument>FramedHTML</argument>
                <argument>target/site/naturaldocs</argument>
                <argument>-p</argument>
                <argument>src/site/naturaldocs</argument>
                <argument>-s</argument>
                <argument>Default</argument>
                <argument>Customized</argument>
              </arguments>
            </configuration>
          </execution>
        </executions>
        <configuration>
          <!-- M2 Eclipse integration needs to have a command here -->
          <executable>echo</executable>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>build-helper-maven-plugin</artifactId>
        <inherited>true</inherited>
        <executions>
          <execution>
            <id>naturaldocs-install</id>
            <phase>none</phase>
            <goals>
              <goal>attach-artifact</goal>
            </goals>
            <configuration>
              <artifacts>
                <artifact>
                  <file>target/${project.artifactId}-${project.version}-naturaldocs.zip</file>
                  <classifier>naturaldocs</classifier>
                  <type>zip</type>
                </artifact>
              </artifacts>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-surefire-plugin</artifactId>
          <version>2.6</version>
          <configuration>
            <argLine>-XX:PermSize=128m -XX:+CMSClassUnloadingEnabled</argLine>
          </configuration>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-clean-plugin</artifactId>
          <version>2.4.1</version>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-war-plugin</artifactId>
          <version>2.1-beta-1</version>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-release-plugin</artifactId>
          <version>2.1</version>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-javadoc-plugin</artifactId>
          <version>2.7</version>
        </plugin>
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>build-helper-maven-plugin</artifactId>
          <version>1.5</version>
        </plugin>
        <plugin>
          <groupId>com.mycila.maven-license-plugin</groupId>
          <artifactId>maven-license-plugin</artifactId>
          <version>1.8.0</version>
          <configuration>
            <header>src/etc/header.txt</header>
            <failIfMissing>true</failIfMissing>
            <strictCheck>true</strictCheck>
            <aggregate>true</aggregate>
            <excludes>
              <exclude>target-eclipse/**</exclude>
              <exclude>src/test/resources/**</exclude>
              <exclude>src/site/naturaldocs/**</exclude>
              <exclude>**/*.dtd</exclude>
            </excludes>
            <properties>
              <license.year>2010</license.year>
              <license.description>Legato is a configurable, lightweight web mapping client that can be
easily embedded into web pages and portals, CMS and individual web
applications. Legato is implemented in JavaScript and based on the
popular open source library OpenLayers.</license.description>
              <license.vendorInformation>disy Informationssysteme GmbH, http://www.disy.net</license.vendorInformation>
            </properties>
          </configuration>
          <executions>
            <execution>
              <id>license-checkheaders</id>
              <phase>validate</phase>
              <goals>
                <goal>check</goal>
              </goals>
            </execution>
          </executions>
        </plugin>
        <plugin>
          <groupId>org.jvnet.mcvp</groupId>
          <artifactId>maven-css-validator-plugin</artifactId>
          <version>1.0.0</version>
        </plugin>
        <plugin>
          <artifactId>maven-antrun-plugin</artifactId>
          <version>1.3</version>
          <dependencies>
            <dependency>
              <groupId>sun.jdk</groupId>
              <artifactId>tools</artifactId>
              <version>1.5.0</version>
              <scope>system</scope>
              <systemPath>${java.home}/../lib/tools.jar</systemPath>
            </dependency>
            <dependency>
              <groupId>junit</groupId>
              <artifactId>junit</artifactId>
              <version>4.5</version>
              <scope>runtime</scope>
            </dependency>
            <dependency>
              <groupId>ant</groupId>
              <artifactId>ant-optional</artifactId>
              <version>1.5.3-1</version>
            </dependency>
            <dependency>
              <groupId>com.googlecode.jslint4java</groupId>
              <artifactId>jslint4java-ant</artifactId>
              <version>1.3.3</version>
            </dependency>
          </dependencies>
        </plugin>
        <plugin>
          <groupId>net.alchim31.maven</groupId>
          <artifactId>yuicompressor-maven-plugin</artifactId>
          <version>1.1</version>
        </plugin>
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>xml-maven-plugin</artifactId>
          <version>1.0</version>
          <dependencies>
            <dependency>
              <groupId>net.sourceforge.saxon</groupId>
              <artifactId>saxon</artifactId>
              <version>9.1.0.8</version>
            </dependency>
          </dependencies>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-release-plugin</artifactId>
          <version>2.1</version>
          <configuration>
            <mavenExecutorId>forked-path</mavenExecutorId>
            <useReleaseProfile>false</useReleaseProfile>
            <arguments>-Psonatype-oss-release -DperformRelease</arguments>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>
  </build>
  <profiles>
    <profile>
      <id>eclipse-folders</id>
      <properties>
        <target.dir>target-eclipse</target.dir>
      </properties>
    </profile>
  </profiles>

</project>