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

  $Author: tchemit $
  $LastChangedDate: 2010-04-12 21:25:14 +0200 (lun., 12 avril 2010) $
  $LastChangedRevision: 1822 $
  $Id: pom.xml 1822 2010-04-12 19:25:14Z tchemit $
  $HeadURL: http://svn.nuiton.org/svn/nuiton-utils/tags/nuiton-utils-1.2.2/pom.xml $
  %%
  Copyright (C) 2004 - 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.1</version>
    </parent>

    <artifactId>nuiton-utils</artifactId>
    <version>1.2.2</version>

    <dependencies>

        <dependency>
            <groupId>log4j</groupId>
            <artifactId>log4j</artifactId>
            <version>1.2.14</version>
            <!-- TC-20091011 : not sure this is a good idea to
                 add this dependency, it is more for a final
                 application to fix this dependency ? -->
            <scope>compile</scope>
        </dependency>

        <dependency>
            <groupId>commons-logging</groupId>
            <artifactId>commons-logging</artifactId>
            <version>1.1.1</version>
        </dependency>

        <dependency>
            <groupId>commons-primitives</groupId>
            <artifactId>commons-primitives</artifactId>
            <version>1.0</version>
            <scope>compile</scope>
        </dependency>

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

        <dependency>
            <groupId>commons-beanutils</groupId>
            <artifactId>commons-beanutils</artifactId>
            <version>1.8.2</version>
            <scope>compile</scope>
        </dependency>

        <dependency>
            <groupId>org.nuiton.i18n</groupId>
            <artifactId>nuiton-i18n</artifactId>
            <version>${i18n.version}</version>
            <scope>compile</scope>
        </dependency>

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

        <dependency>
            <groupId>org.jvnet.hudson.winstone</groupId>
            <artifactId>winstone</artifactId>
            <version>0.9.10-hudson-16</version>
            <scope>provided</scope>
        </dependency>

        <dependency>
            <groupId>org.eclipse.jetty.aggregate</groupId>
            <artifactId>jetty-webapp</artifactId>
            <version>7.0.1.v20091125</version>
            <scope>provided</scope>
        </dependency>

    </dependencies>


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

    <name>Nuiton Utils</name>
    <description>Library of usefull class to be used in any project.</description>
    <inceptionYear>2004</inceptionYear>
    <url>http://maven-site.nuiton.org/nuiton-utils</url>

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

    <packaging>jar</packaging>

    <properties>
        <i18n.version>1.2.1</i18n.version>

        <!-- extra files to include in release -->
        <redmine.releaseFiles>${redmine.libReleaseFiles}</redmine.releaseFiles>

    </properties>

    <build>
        
        <plugins>

            <!-- plugin i18n -->
            <plugin>
                <groupId>org.nuiton.i18n</groupId>
                <artifactId>maven-i18n-plugin</artifactId>
                <version>${i18n.version}</version>
                <configuration>
                    <silent>true</silent>
                </configuration>
                <executions>
                    <execution>
                        <goals>
                            <goal>parserJava</goal>
                            <goal>gen</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

        </plugins>

    </build>

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

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

    <profiles>
        <profile>
            <id>reporting</id>
            <activation>
                <property>
                    <name>performRelease</name>
                    <value>true</value>
                </property>
            </activation>
          
            <reporting>
              <plugins>
                  <plugin>
                      <artifactId>maven-javadoc-plugin</artifactId>
                      <configuration>
                          <quiet>true</quiet>
                          <links>
                              <link>http://java.sun.com/javase/6/docs/api/</link>
                          </links>
                      </configuration>
                  </plugin>
              </plugins>
            </reporting>
            
        </profile>

        <profile>
            <id>release-profile</id>
            <activation>
                <property>
                    <name>performRelease</name>
                    <value>true</value>
                </property>
            </activation>
            <build>
                <plugins>

                    <!-- launch in a release the assembly automaticly -->
                    <plugin>
                        <artifactId>maven-assembly-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>create-assemblies</id>
                                <phase>verify</phase>
                                <goals>
                                    <goal>single</goal>
                                </goals>
                            </execution>
                        </executions>
                        <configuration>
                            <attach>false</attach>
                            <descriptorRefs>
                                <descriptorRef>deps</descriptorRef>
                                <descriptorRef>full</descriptorRef>
                            </descriptorRefs>
                        </configuration>
                    </plugin>

                </plugins>

            </build>
        </profile>
    </profiles>

</project>
