<?xml version="1.0" encoding="UTF-8"?>
<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>org.ow2.frascati.tinfi</groupId>
	<artifactId>frascati-tinfi-parent</artifactId>
	<packaging>pom</packaging>
	<version>1.4.4</version>

	<name>Tinfi</name>
	<url>http://frascati.ow2.org</url>
	<inceptionYear>2007</inceptionYear>

	<developers>
        <developer>
            <id>seinturier</id>
            <name>Lionel Seinturier</name>
            <email>Lionel.Seinturier@univ-lille1.fr</email>
            <organization>USTL</organization>
            <organizationUrl>http://www.univ-lille1.fr</organizationUrl>
            <roles>
                <role>Architect</role>
                <role>Developer</role>
            </roles>
        </developer>
        <developer>
            <id>fournier</id>
            <name>Damien Fournier</name>
            <email>Damien.Fournier@inria.fr</email>
            <organization>INRIA</organization>
            <organizationUrl>http://www.inria.fr</organizationUrl>
            <roles>
              <role>Developer</role>
           </roles>
        </developer>
    </developers>

    <distributionManagement>
      <site>
        <id>frascati.website</id>
        <url>scp://shell.forge.objectweb.org/var/lib/gforge/chroot/home/groups/frascati/htdocs/</url>
      </site>
      <repository>
        <id>OW2-release</id>
        <name>OW2 release repository</name>
        <url>scp://forge.objectweb.org/var/lib/gforge/chroot/home/groups/maven/htdocs/maven2</url>
      </repository>
      <snapshotRepository>
        <id>OW2-snapshot</id>
        <name>OW2 snapshot repository</name>
        <url>scp://forge.objectweb.org/var/lib/gforge/chroot/home/groups/maven/htdocs/maven2-snapshot</url>
      </snapshotRepository>
    </distributionManagement>
    
    <scm>
      <connection>scm:svn:svn://svn.forge.objectweb.org/svnroot/frascati/trunk/</connection>
      <developerConnection>scm:svn:svn+ssh://svn.forge.objectweb.org/svnroot/frascati/trunk/</developerConnection>
      <url>http://svn.forge.objectweb.org/cgi-bin/viewcvs.cgi/frascati/trunk/</url>
    </scm>
    
    <ciManagement>
      <system>hudson</system>
      <url>http://frascati-ic.lille.inria.fr</url>
    </ciManagement>

  
    <!-- ============= -->
    <!-- Repositories  -->
    <!-- ============= -->
    
    <repositories>
      	<repository>
        	<id>OW2-release</id>
        	<name>OW2 release repository</name>
        	<url>http://maven.objectweb.org/maven2</url>
        	<releases><enabled>true</enabled></releases>
        	<snapshots><enabled>false</enabled></snapshots>
      	</repository>
      	<repository>
        	<id>OW2-snapshot</id>
        	<name>OW2 snapshot repository</name>
        	<url>http://maven.objectweb.org/maven2-snapshot</url>
        	<snapshots>
          		<enabled>true</enabled>
          		<updatePolicy>daily</updatePolicy>
        	</snapshots>
      	</repository>
		<repository>
			<id>OASIS-SCA</id>
			<name>OASIS SCA</name>
			<url>http://tools.oasis-open.org/version-control/svn/sca-j/Release</url>
			<releases><enabled>true</enabled></releases>
			<snapshots><enabled>false</enabled></snapshots>
		</repository>
    </repositories>
    
    <pluginRepositories>
      	<pluginRepository>
	        <id>OW2-release</id>
	        <name>OW2 release repository</name>
	        <url>http://maven.objectweb.org/maven2</url>
	        <releases><enabled>true</enabled></releases>
	        <snapshots><enabled>false</enabled></snapshots>
		</pluginRepository>
		<pluginRepository>
	  		<id>OW2-snapshot</id>
        	<name>OW2 snapshot repository</name>
	        <url>http://maven.objectweb.org/maven2-snapshot</url>
	        <snapshots>
	        	<enabled>true</enabled>
	          	<updatePolicy>daily</updatePolicy>
	        </snapshots>
      	</pluginRepository>
    </pluginRepositories>

    
    <!-- ========== -->
    <!-- Properties -->
    <!-- ========== -->
    
	<properties>
		<fraclet.version>3.3</fraclet.version>
		<julia.version>2.5.2</julia.version>
		<juliac.version>2.4</juliac.version>
	</properties>


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

	<dependencyManagement>
		<dependencies>
			<dependency>
				<groupId>org.objectweb.fractal</groupId>
				<artifactId>fractal-api</artifactId>
				<version>2.0.2</version>
			</dependency>
			<dependency>
				<groupId>org.objectweb.fractal</groupId>
				<artifactId>fractal-util</artifactId>
				<version>1.1.2</version>
			</dependency>
			<dependency>
				<groupId>org.oasis-open.sca.j</groupId>
				<artifactId>sca-caa-apis</artifactId>
				<version>1.1-CD04</version>
			</dependency>
            <dependency>
                <groupId>org.eclipse.stp.sca.osoa.java</groupId>
                <artifactId>osoa-java-api</artifactId>
                <version>2.0.1.2</version>
            </dependency>
			<dependency>
		        <groupId>org.objectweb.fractal.fraclet.java</groupId>
			    <artifactId>fraclet-annotations</artifactId>
		        <version>${fraclet.version}</version>
			</dependency>
	        <dependency>
	            <groupId>aopalliance</groupId>
	            <artifactId>aopalliance</artifactId>
	            <version>1.0</version>
	        </dependency>
			<dependency>
				<groupId>junit</groupId>
				<artifactId>junit</artifactId>
				<version>4.6</version>
				<scope>test</scope>
			</dependency>
		</dependencies>   
	</dependencyManagement>

      
    <!-- ======= -->
    <!-- Modules -->
    <!-- ======= -->
    
	<modules>
		<module>runtime</module>
		<module>mixins</module>
		<module>opt</module>
		<module>plugin</module>
		<module>tinfi-mixed</module>
		<module>all</module>
		<module>extension</module>
	</modules>


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

	<build>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<configuration>
					<source>1.5</source>
					<target>1.5</target>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-release-plugin</artifactId>
				<configuration>
					<tagBase>svn+ssh://svn.forge.objectweb.org/svnroot/frascati/tags/tinfi/</tagBase>
				</configuration>
			</plugin>
		</plugins>
	</build>


    <!-- ======== -->
    <!-- Profiles -->
    <!-- ======== -->
    
	<profiles>
	
        <!-- ======================================================== -->
        <!-- Profile for tests and examples                           -->
        <!-- ======================================================== -->
        <profile>
            <id>tinfi:tests</id>
			<modules>
				<module>tests</module>
				<module>examples</module>
			</modules>
        </profile>

        <!-- ======================================================== -->
        <!-- Profile for lauching an application hosted by Tinfi      -->
        <!-- ======================================================== -->
        <profile>
            <id>tinfi:run</id>
            <build>
                <defaultGoal>compile</defaultGoal>
                <plugins>
                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>exec-maven-plugin</artifactId>
                        <executions>
                            <execution>
                                <goals><goal>java</goal></goals>
                                <phase>compile</phase>
                            </execution>
                        </executions>
                        <configuration>
                            <mainClass>org.objectweb.fractal.juliac.runtime.Launcher</mainClass>
                            <systemProperties>
                                <systemProperty>
                                    <key>fractal.provider</key>
                                    <value>org.objectweb.fractal.juliac.runtime.Juliac</value>
                                </systemProperty>
                            </systemProperties>
                            <arguments>
                                <argument>${tinfi.run.component}</argument>
                                <argument>${tinfi.run.interface}</argument>
                            </arguments>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
            <dependencies>
                <dependency>
                    <groupId>org.ow2.frascati.tinfi</groupId>
                    <artifactId>frascati-tinfi-runtime</artifactId>
                    <version>${project.version}</version>
                </dependency>
            </dependencies>
        </profile>
	</profiles>
	
</project>
