<?xml version="1.0" encoding="UTF-8"?>
<!--
  * OW2 FraSCAti
  *
  * Copyright (c) 2010 INRIA
  *
  * This library 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 2 of the License, or (at your option) any later version.
  *
  * This library 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
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
  * License along with this library; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  *
  * Contact: frascati@ow2.org
  *
  * Author: Philippe Merle
  *
  * Contributor(s):
-->

<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>

  <!-- ===================== -->
  <!-- General Information   -->
  <!-- ===================== -->

  <parent>
    <groupId>org.ow2.frascati</groupId>
    <artifactId>parent</artifactId>
    <version>1.4</version>
  </parent>
  
  <groupId>org.ow2.frascati</groupId>
  <artifactId>frascati-parent</artifactId>
  <packaging>pom</packaging>
  <name>OW2 FraSCAti: Parent</name>

  <url>http://frascati.ow2.org</url>
  <inceptionYear>2007</inceptionYear>
  
  <developers>
    <developer>
      <id>merle</id>
      <name>Philippe Merle</name>
      <email>Philippe.Merle@inria.fr</email>
      <organization>INRIA</organization>
      <organizationUrl>http://www.inria.fr</organizationUrl>
      <roles>
        <role>Architect</role>
        <role>Developer</role>
      </roles>
    </developer>
  </developers>

  <!-- ============ -->
  <!-- Properties   -->
  <!-- ============ -->

  <properties>
    <frascati.basedir>../..</frascati.basedir>
    <frascati.logging.properties>${frascati.basedir}/logging.properties</frascati.logging.properties>
  </properties>

  <!-- ======= -->
  <!-- Build   -->
  <!-- ======= -->

  <build>
    <defaultGoal>install</defaultGoal>

    <plugins>

      <!-- Ensure use of Java 1.5 and Maven 2.2.0. -->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-enforcer-plugin</artifactId>
        <executions>
          <execution>
            <id>enforce-versions</id>
            <goals>
              <goal>enforce</goal>
            </goals>
            <configuration>
              <rules>
                <requireMavenVersion>
                  <version>2.2.0</version>
                </requireMavenVersion>
                <requireJavaVersion>
                  <version>1.5</version>
                </requireJavaVersion>
              </rules>
            </configuration>
          </execution>
        </executions>
      </plugin>

      <!-- To compile Java source code. -->
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
        <fork>true</fork>
        <meminitial>64m</meminitial>
        <maxmem>512m</maxmem>
        <systemProperties>
          <property>
            <name>java.util.logging.config.file</name>
            <value>${frascati.logging.properties}</value>
          </property>
          </systemProperties>
        </configuration>
      </plugin>

      <!-- Configuration when testing. -->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
          <systemProperties>
            <property>
              <name>java.util.logging.config.file</name>
              <value>${frascati.logging.properties}</value>
            </property>
          </systemProperties>
        </configuration>
      </plugin>

      <!-- Plugin for image generation representing the dependencies graph -->
      <!-- To use this plugin, type: 'mvn depgraph:depgraph' -->
      <!-- This plugin requires the 'dot' library, provided by the -->
      <!-- GraphViz software (http://www.graphviz.org ) -->
      <plugin>
        <groupId>ch.elca.el4j.maven.plugins</groupId>
        <artifactId>maven-depgraph-plugin</artifactId>
      </plugin>

    </plugins>

	<pluginManagement>
		<plugins>
     	<!-- Create jar for this intent -->
			<plugin>
				<artifactId>maven-assembly-plugin</artifactId>
				<version>2.2</version>
				<dependencies>
					<dependency>
						<groupId>org.ow2.frascati.mojo</groupId>
						<artifactId>frascati-assemby-descriptor</artifactId>
						<version>${project.version}</version>
					</dependency>
				</dependencies>
				<configuration>
              <!-- This is where we use our shared assembly descriptor -->
					<descriptorRefs>
						<descriptorRef>bin</descriptorRef>
					</descriptorRefs>
				</configuration>
			</plugin>
		</plugins>
	</pluginManagement>

  </build>

  <!-- ============ -->
  <!-- Dependencies -->
  <!-- ============ -->

  <dependencies>

    <!-- JUnit Test -->
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <scope>test</scope>
    </dependency>

  </dependencies>

  <!-- ============= -->
  <!-- Repositories  -->
  <!-- ============= -->

  <repositories>
  </repositories>

  <!-- ======= -->
  <!-- Modules -->
  <!-- ======= -->

  <modules>
    <module>maven-plugins</module>
    <module>modules</module>
    <module>tools</module>
<!-- TODO
    <module>examples</module>
-->
    <module>intents</module>
  </modules>

</project>
