<?xml version="1.0" encoding="UTF-8"?>
<!--
  #%L
  JAXX

  $Id: pom.xml 2079 2010-09-07 12:38:18Z tchemit $
  $HeadURL: http://svn.nuiton.org/svn/jaxx/tags/jaxx-2.2/pom.xml $
  %%
  Copyright (C) 2008 - 2010 CodeLutin
  %%
  This program is free software: you can redistribute it and/or modify
  it under the terms of the GNU Lesser General Public License as
  published by the Free Software Foundation, either version 3 of the
  License, or (at your option) any later version.

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Lesser Public License for more details.

  You should have received a copy of the GNU General Lesser Public
  License along with this program.  If not, see
  <http://www.gnu.org/licenses/lgpl-3.0.html>.
  #L%
  -->
<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>

  <!-- ************************************************************* -->
  <!-- *** POM Relationships *************************************** -->
  <!-- ************************************************************* -->

  <parent>
    <groupId>org.nuiton</groupId>
    <artifactId>mavenpom4redmine</artifactId>
    <version>2.2.4</version>
  </parent>

  <artifactId>jaxx</artifactId>
  <version>2.2</version>

  <modules>
    <module>jaxx-runtime</module>

    <module>jaxx-compiler</module>

    <module>maven-jaxx-plugin</module>

    <module>jaxx-widgets</module>

  </modules>

  <dependencyManagement>
    <dependencies>

      <!-- lutin dependencies -->

      <dependency>
        <groupId>org.nuiton</groupId>
        <artifactId>nuiton-utils</artifactId>
        <version>${lutinutil.version}</version>
      </dependency>

      <dependency>
        <groupId>org.nuiton</groupId>
        <artifactId>maven-helper-plugin</artifactId>
        <version>${helper.version}</version>
        <scope>compile</scope>
        <exclusions>
          <exclusion>
            <groupId>org.apache.maven</groupId>
            <artifactId>maven-artifact</artifactId>
          </exclusion>

          <exclusion>
            <groupId>org.apache.maven</groupId>
            <artifactId>maven-artifact-manager</artifactId>
          </exclusion>

          <exclusion>
            <groupId>org.apache.maven.shared</groupId>
            <artifactId>maven-dependency-tree</artifactId>
          </exclusion>

          <exclusion>
            <groupId>org.apache.maven</groupId>
            <artifactId>maven-model</artifactId>
          </exclusion>

          <exclusion>
            <groupId>org.apache.maven</groupId>
            <artifactId>maven-profile</artifactId>
          </exclusion>

          <exclusion>
            <groupId>org.apache.maven</groupId>
            <artifactId>maven-settings</artifactId>
          </exclusion>
          <exclusion>
            <groupId>commons-httpclient</groupId>
            <artifactId>commons-httpclient</artifactId>
          </exclusion>

          <exclusion>
            <groupId>plexus</groupId>
            <artifactId>plexus-mail-sender-simple</artifactId>
          </exclusion>

          <exclusion>
            <groupId>plexus</groupId>
            <artifactId>plexus-mail-sender-api</artifactId>
          </exclusion>

          <exclusion>
            <groupId>plexus</groupId>
            <artifactId>plexus-mail-sender-javamail</artifactId>
          </exclusion>

          <exclusion>
            <groupId>javax.mail</groupId>
            <artifactId>mail</artifactId>
          </exclusion>

          <exclusion>
            <groupId>org.sonatype.plexus</groupId>
            <artifactId>plexus-cipher</artifactId>
          </exclusion>

          <exclusion>
            <groupId>org.sonatype.plexus</groupId>
            <artifactId>plexus-sec-dispatcher</artifactId>
          </exclusion>

        </exclusions>
      </dependency>

      <dependency>
        <groupId>org.nuiton</groupId>
        <artifactId>maven-helper-plugin</artifactId>
        <version>${helper.version}</version>
        <scope>test</scope>
        <classifier>tests</classifier>
        <exclusions>

          <exclusion>
            <groupId>org.apache.maven.shared</groupId>
            <artifactId>maven-dependency-tree</artifactId>
          </exclusion>

          <exclusion>
            <groupId>commons-httpclient</groupId>
            <artifactId>commons-httpclient</artifactId>
          </exclusion>

          <exclusion>
            <groupId>plexus</groupId>
            <artifactId>plexus-mail-sender-simple</artifactId>
          </exclusion>

          <exclusion>
            <groupId>plexus</groupId>
            <artifactId>plexus-mail-sender-api</artifactId>
          </exclusion>

          <exclusion>
            <groupId>plexus</groupId>
            <artifactId>plexus-mail-sender-javamail</artifactId>
          </exclusion>

          <exclusion>
            <groupId>javax.mail</groupId>
            <artifactId>mail</artifactId>
          </exclusion>

          <exclusion>
            <groupId>org.sonatype.plexus</groupId>
            <artifactId>plexus-cipher</artifactId>
          </exclusion>

          <exclusion>
            <groupId>org.sonatype.plexus</groupId>
            <artifactId>plexus-sec-dispatcher</artifactId>
          </exclusion>

        </exclusions>
      </dependency>

      <!-- common dependencies -->

      <dependency>
        <groupId>commons-jxpath</groupId>
        <artifactId>commons-jxpath</artifactId>
        <version>1.3</version>
      </dependency>

      <dependency>
        <groupId>commons-lang</groupId>
        <artifactId>commons-lang</artifactId>
        <version>2.4</version>
      </dependency>

      <dependency>
        <groupId>commons-io</groupId>
        <artifactId>commons-io</artifactId>
        <version>1.4</version>
      </dependency>

      <dependency>
        <groupId>commons-collections</groupId>
        <artifactId>commons-collections</artifactId>
        <version>3.2.1</version>
      </dependency>

      <!-- sun dependencies -->

      <dependency>
        <groupId>com.sun</groupId>
        <artifactId>dt</artifactId>
        <version>${java.version}</version>
        <scope>system</scope>
        <systemPath>/${java.home}/../lib/dt.jar</systemPath>
      </dependency>

      <dependency>
        <groupId>javax.help</groupId>
        <artifactId>javahelp</artifactId>
        <version>${javahelp.version}</version>
      </dependency>

      <!-- maven dependencies -->

      <dependency>
        <groupId>org.apache.maven</groupId>
        <artifactId>maven-plugin-api</artifactId>
        <version>${maven.version}</version>
        <scope>provided</scope>
      </dependency>

      <dependency>
        <groupId>org.apache.maven</groupId>
        <artifactId>maven-project</artifactId>
        <version>${maven.version}</version>
        <scope>provided</scope>
      </dependency>

      <!-- xworks dependencies -->

      <dependency>
        <groupId>com.opensymphony</groupId>
        <artifactId>xwork</artifactId>
        <version>2.1.3</version>
        <exclusions>
          <exclusion>
            <groupId>org.springframework</groupId>
            <artifactId>spring-test</artifactId>
          </exclusion>
        </exclusions>
      </dependency>

      <!-- rsyntaxtextarea dependency -->
      <dependency>
        <groupId>org.nuiton.thirdparty</groupId>
        <artifactId>rsyntaxtextarea</artifactId>
        <version>1.4.1</version>
      </dependency>

      <!-- swinglabs dependencies -->

      <dependency>
        <groupId>org.swinglabs</groupId>
        <artifactId>jxlayer</artifactId>
        <version>${jxlayer.version}</version>
      </dependency>

      <dependency>
        <groupId>org.swinglabs</groupId>
        <artifactId>swingx</artifactId>
        <version>1.6.1</version>
        <scope>compile</scope>
      </dependency>

      <!--dependency>
          <groupId>org.swinglabs</groupId>
          <artifactId>swing-worker</artifactId>
          <version>1.1</version>
      </dependency-->

      <dependency>
        <groupId>log4j</groupId>
        <artifactId>log4j</artifactId>
        <version>1.2.16</version>
      </dependency>

      <dependency>
        <groupId>org.codehaus.plexus</groupId>
        <artifactId>plexus-velocity</artifactId>
        <version>1.1.7</version>
        <exclusions>
          <exclusion>
            <groupId>org.codehaus.plexus</groupId>
            <artifactId>plexus-container-default</artifactId>
          </exclusion>
          <exclusion>
            <groupId>org.codehaus.plexus</groupId>
            <artifactId>plexus-component-api</artifactId>
          </exclusion>
          <exclusion>
            <groupId>velocity</groupId>
            <artifactId>velocity</artifactId>
          </exclusion>
        </exclusions>
      </dependency>

      <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>4.8.1</version>
        <scope>test</scope>
      </dependency>

      <dependency>
        <groupId>org.apache.maven.shared</groupId>
        <artifactId>maven-verifier</artifactId>
        <version>1.0</version>
        <scope>test</scope>
      </dependency>

      <dependency>
        <groupId>org.apache.maven.plugin-testing</groupId>
        <artifactId>maven-plugin-testing-harness</artifactId>
        <version>1.2</version>
        <scope>test</scope>
        <exclusions>

          <exclusion>
            <groupId>org.codehaus.plexus</groupId>
            <artifactId>plexus-archiver</artifactId>
          </exclusion>

          <exclusion>
            <groupId>org.apache.maven.wagon</groupId>
            <artifactId>wagon-http-lightweight</artifactId>
          </exclusion>

          <exclusion>
            <groupId>org.apache.maven.wagon</groupId>
            <artifactId>wagon-file</artifactId>
          </exclusion>

          <exclusion>
            <groupId>org.apache.maven.wagon</groupId>
            <artifactId>wagon-ssh</artifactId>
          </exclusion>

          <exclusion>
            <groupId>org.apache.maven.reporting</groupId>
            <artifactId>maven-reporting-api</artifactId>
          </exclusion>

          <!-- FIXME shoudl use the maven-ocre of maven.version...
          <exclusion>
              <groupId>org.apache.maven</groupId>
              <artifactId>maven-core</artifactId>
          </exclusion-->

        </exclusions>
      </dependency>

      <!-- FIXME si on ne le rajoute pas, on se retrouve avec la version 1.1 qui ne convient pas -->
      <dependency>
        <groupId>org.codehaus.plexus</groupId>
        <artifactId>plexus-utils</artifactId>
        <version>1.5.15</version>
        <scope>compile</scope>
      </dependency>

    </dependencies>
  </dependencyManagement>

  <!-- ************************************************************* -->
  <!-- *** Project Information ************************************* -->
  <!-- ************************************************************* -->

  <name>JAXX</name>
  <description>JAXX Project</description>
  <inceptionYear>2008</inceptionYear>
  <url>http://maven-site.nuiton.org/jaxx</url>

  <!-- ************************************************************* -->
  <!-- *** Build Settings ****************************************** -->
  <!-- ************************************************************* -->

  <packaging>pom</packaging>

  <properties>

    <!-- pour un muli module on doit fixer le projectId -->
    <projectId>jaxx</projectId>

    <lutinutil.version>1.4.1</lutinutil.version>
    
    <i18n.version>1.2.2</i18n.version>

    <jxlayer.version>3.0.3</jxlayer.version>

    <javahelp.version>2.0.02</javahelp.version>
    <jnlp.version>1.0-alpha-2-cl_20100511</jnlp.version>

    <!-- release config  -->

    <!-- activate this profile while doing release:prepare -->
    <arguments>-DperformRelease -Pcentral-safe</arguments>

    <!-- activate this profile while doing release:perform -->
    <releaseProfiles>central-safe</releaseProfiles>
    
  </properties>

  <build>

    <pluginManagement>
      <plugins>

        <!-- plugin i18n -->
        <plugin>
          <groupId>org.nuiton.i18n</groupId>
          <artifactId>maven-i18n-plugin</artifactId>
          <version>${i18n.version}</version>
        </plugin>

        <plugin>
          <groupId>org.nuiton</groupId>
          <artifactId>maven-license-plugin</artifactId>
          <version>${license.version}</version>
          <configuration>
            <licenseMerges>
              <licenseMerge>The Apache Software License, Version 2.0|Apache License, Version 2.0</licenseMerge>
              <licenseMerge>BSD License|BSD</licenseMerge>
            </licenseMerges>
          </configuration>
        </plugin>

        <plugin>
          <artifactId>maven-site-plugin</artifactId>
          <dependencies>
            <dependency>
              <groupId>org.nuiton.jrst</groupId>
              <artifactId>doxia-module-jrst</artifactId>
              <version>${jrst.version}</version>
            </dependency>
          </dependencies>
        </plugin>

        <plugin>
          <groupId>org.nuiton.thirdparty</groupId>
          <artifactId>webstart-maven-plugin</artifactId>
          <version>${jnlp.version}</version>
          <configuration>
            <jnlp>
              <mainClass>${maven.jar.main.class}</mainClass>
              <allPermissions>true</allPermissions>
              <offlineAllowed>true</offlineAllowed>
            </jnlp>
            <jnlpExtensions>
              <jnlpExtension>
                <name>sun</name>
                <title>Sun MicroSystems</title>
                <vendor>Sun MicroSystems, Inc.</vendor>
                <includes>
                  <include>javax.help:javahelp</include>
                </includes>
              </jnlpExtension>
              <jnlpExtension>
                <name>jxlayer</name>
                <title>Swing labs JXLayer</title>
                <vendor>Swing Labs</vendor>
                <includes>
                  <include>org.swinglabs:jxlayer</include>
                </includes>
              </jnlpExtension>
            </jnlpExtensions>
          </configuration>
        </plugin>

        <plugin>
          <artifactId>maven-release-plugin</artifactId>
          <configuration>
            <prepareVerifyArgs>-Ptutorial,demo</prepareVerifyArgs>
          </configuration>
        </plugin>

      </plugins>
    </pluginManagement>

  </build>

  <reporting>
    <excludeDefaults>true</excludeDefaults>
  </reporting>

  <!-- ************************************************************* -->
  <!-- *** Build Environment  ************************************** -->
  <!-- ************************************************************* -->

  <!-- Source control management. -->
  <scm>
    <connection>scm:svn:http://svn.nuiton.org/svn/jaxx/tags/jaxx-2.2</connection>
    <developerConnection>scm:svn:http://svn.nuiton.org/svn/jaxx/tags/jaxx-2.2</developerConnection>
    <url>http://www.nuiton.org/repositories/browse/jaxx/tags/jaxx-2.2</url>
  </scm>

  <profiles>

    <!-- build demo at release time -->
    <profile>
      <id>demo</id>
      <activation>
        <property>
          <name>performRelease</name>
          <value>true</value>
        </property>
      </activation>

      <modules>
        <module>jaxx-demo</module>
      </modules>

    </profile>

    <!-- build tutorials  at release time -->
    <profile>
      <id>tutorial</id>
      <activation>
        <property>
          <name>performRelease</name>
          <value>true</value>
        </property>
      </activation>

      <modules>
        <module>jaxx-tutorial</module>
      </modules>

    </profile>

  </profiles>

</project>

