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

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

	<parent>
		<groupId>org.ow2</groupId>
		<artifactId>ow2</artifactId>
		<version>1.3</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>
		<scala.version>2.10.0-M1</scala.version>
	</properties>

	<modules>
		<module>runtime</module>
		<module>core</module>
		<module>module</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>
				<version>1.0.1</version>
				<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>
				<version>2.3.2</version>
				<configuration>
					<source>1.5</source>
					<target>1.5</target>
				</configuration>
			</plugin>
			
			<!-- ================= -->
			<!-- Source packaging  -->
			<!-- ================= -->
            <plugin>
                <artifactId>maven-source-plugin</artifactId>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals><goal>jar</goal></goals>
                    </execution>
                </executions>        
            </plugin>

			<!-- ================== -->
			<!-- Javadoc packaging  -->
			<!-- ================== -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals><goal>jar</goal></goals>
                    </execution>
                </executions>        
                <configuration>
                    <windowtitle>OW2 Fractal Juliac ${project.version}</windowtitle>
                    <doctitle>OW2 Fractal Juliac ${project.version}</doctitle>
                </configuration>
            </plugin>

		</plugins>
	</build>

	<developers>
        <developer>
            <id>seinturier</id>
            <name>Lionel Seinturier</name>
            <email>Lionel.Seinturier@univ-lille1.fr</email>
            <organization>Univ. Lille 1</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.ow2.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.ow2.fractal.juliac</groupId>
                    <artifactId>juliac-runtime-comp</artifactId>
                    <version>${project.version}</version>
                </dependency>
            </dependencies>
        </profile>
	</profiles>
	
	<repositories>
	    <!-- =============================================================== -->
    	<!-- The old ObjectWeb release repository.                           -->
    	<!--                                                                 -->
    	<!-- The new one http://repository.ow2.org/nexus (defined in the     -->
    	<!-- parent POM org.ow2:ow2:1.3) is synchronized with Maven central, -->
    	<!-- yet some artifacts from the old one are not deployed in the new -->
    	<!-- one. This is the case for example for                           -->
    	<!-- org.objectweb.fractal.julia:julia-mixins::jar:2.5.2             -->
	    <!-- =============================================================== -->
    	<repository>
      		<id>objectweb-release</id>
      		<name>Objectweb Release Repository</name>
      		<url>http://maven.ow2.org/maven2</url>
      		<releases><enabled>true</enabled></releases>
      		<snapshots><enabled>false</enabled></snapshots>
    	</repository>
	</repositories>

</project>
