<?xml version="1.0"?>
<!--
  * OW2 FraSCAti: Assembly Factory Module
  *
  * Copyright (c) 2010-2011 INRIA, University of Lille 1
  *
  * 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>frascati-modules</artifactId>
    <version>1.4</version>
  </parent>
  
  <groupId>org.ow2.frascati</groupId>
  <artifactId>frascati-sca-compiler-parent</artifactId>
  <packaging>pom</packaging>
  <name>OW2 FraSCAti: SCA Compiler (with Juliac/Tinfi SCA ADL/SCA Parser) 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>

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

  <build>
    <defaultGoal>install</defaultGoal>

    <pluginManagement>
      <plugins>
        <!--
         Compile the SCA composite with OW2 Fractal Juliac and the OW2 FraSCAti Tinfi SCA Parser plugin.
        -->
        <plugin>
          <groupId>org.objectweb.fractal.juliac</groupId>
          <artifactId>maven-juliac-plugin</artifactId>
          <configuration>
            <adlParsers>
              <adlParser>org.ow2.frascati.tinfi.FrascatiTinfiScaParser</adlParser>
            </adlParsers>
            <modules>
              <module>org.ow2.frascati.tinfi:frascati-tinfi-oo:${tinfi.version}</module>
              <module>org.ow2.frascati:frascati-tinfi-sca-parser:${project.version}</module>
            </modules>
          </configuration>
          <dependencies>
            <dependency>
              <groupId>org.ow2.frascati</groupId>
              <artifactId>frascati-tinfi-sca-parser</artifactId>
              <version>${project.version}</version>
            </dependency>
          </dependencies>
        </plugin>
      </plugins>
    </pluginManagement>

    <plugins>
      <!-- Force to copy src/main/resources/* to target/classes/* before executing the Juliac Tinfi SCA Parser plugin. -->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-resources-plugin</artifactId>
        <executions>
          <execution>
            <id>copy-resources</id>
            <phase>generate-sources</phase>
            <goals>
              <goal>copy-resources</goal>
            </goals>
            <configuration>
              <outputDirectory>${basedir}/target/classes</outputDirectory>
              <resources>
                <resource>
                  <directory>${basedir}/src/main/resources</directory>
                  <filtering>true</filtering>
                </resource>
              </resources>          
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>

  </build>

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

  <dependencies>
  </dependencies>

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

  <repositories>
  </repositories>

</project>
