<?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.objectweb.fractal.juliac</groupId>
	<artifactId>juliac-parent</artifactId>
	<packaging>pom</packaging>
	<version>2.4</version>

	<name>Juliac</name>
	<url>http://fractal.ow2.org/juliac</url>
	<inceptionYear>2007</inceptionYear>

	<parent>
		<groupId>org.objectweb.fractal</groupId>
		<artifactId>parent</artifactId>
		<version>2.0</version>
	</parent>

	<properties>
		<fraclet.version>3.3</fraclet.version>
		<fractalapi.version>2.0.2</fractalapi.version>
		<fractal-util.version>1.1.2</fractal-util.version>
		<julia.version>2.5.2</julia.version>
		<koch-runtime.version>2.5.2.3</koch-runtime.version>
		<mind.version>0.1</mind.version>
	</properties>

	<modules>
		<module>runtime</module>
		<module>core</module>
		<module>plugin</module>
		<module>opt</module>
		<module>mojo</module>
		<module>julia-mixed</module>
		<module>all</module>
		<module>extension</module>
    </modules>
    
	<build>
	    <defaultGoal>install</defaultGoal>
		<plugins>

			<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>
								<requireJavaVersion>
									<version>1.5</version>
								</requireJavaVersion>
						    </rules>
						</configuration>
					</execution>
				</executions>
			</plugin>

			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<configuration>
					<source>1.5</source>
					<target>1.5</target>
				</configuration>
			</plugin>
		</plugins>
	</build>

	<repositories>
		<repository>
			<id>objectweb-release</id>
			<name>ObjectWeb Maven Repository</name>
			<url>http://maven.objectweb.org/maven2</url>
			<releases>
				<enabled>true</enabled>
			</releases>
			<snapshots>
				<enabled>false</enabled>
			</snapshots>
		</repository>
		<repository>
			<id>objectweb-snapshot</id>
			<name>ObjectWeb Maven Repository</name>
			<url>http://maven.objectweb.org/maven2-snapshot</url>
			<releases>
				<enabled>true</enabled>
			</releases>
			<snapshots>
				<enabled>true</enabled>
				<updatePolicy>daily</updatePolicy>
			</snapshots>
		</repository>
	</repositories>

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

	<profiles>

        <!-- ======================================================== -->
        <!-- Profile for examples                                     -->
        <!-- ======================================================== -->
        <profile>
            <id>juliac:examples</id>
			<modules>
				<module>examples</module>
			</modules>
        </profile>

		<!-- ======================================================== -->
		<!-- Profile for lauching an application with Juliac OO       -->
		<!-- ======================================================== -->
        <profile>
            <id>juliac: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>${juliac.run.component}</argument>
                                <argument>${juliac.run.interface}</argument>
                            </arguments>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
            <dependencies>
                <dependency>
                    <groupId>org.objectweb.fractal.juliac</groupId>
                    <artifactId>juliac-runtime</artifactId>
                    <version>${project.version}</version>
                </dependency>
            </dependencies>
        </profile>

		<!-- ======================================================== -->
		<!-- Profile for lauching an application with Juliac COMP     -->
		<!-- ======================================================== -->
        <profile>
            <id>juliac_comp: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.comp.Juliac</value>
                                </systemProperty>
                            </systemProperties>
                            <arguments>
                                <argument>${juliac.run.component}</argument>
                                <argument>${juliac.run.interface}</argument>
                            </arguments>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
            <dependencies>
                <dependency>
                    <groupId>org.objectweb.fractal.juliac</groupId>
                    <artifactId>juliac-runtime-comp</artifactId>
                    <version>${project.version}</version>
                </dependency>
            </dependencies>
        </profile>
	</profiles>

</project>
