<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<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/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<parent>
		<groupId>com.indra.jee.arq.spring</groupId>
		<artifactId>arq-spring-parent</artifactId>
		<version>1.0.0</version>
	</parent>
	<groupId>com.indra</groupId>
	<artifactId>sofia2</artifactId>
	<version>2.7.0</version>
	<packaging>pom</packaging>
	<name>SOFIA2</name>
	<url>http://maven.apache.org</url>

	<properties>
	    <maven.compiler.target>1.7</maven.compiler.target>
	    <maven.compiler.source>1.7</maven.compiler.source>
	</properties>

	<repositories>
		<repository>   
	   		<id>SOFIA2</id>
	    	<url>http://sofia2.org/nexus/content/groups/public/</url>
		</repository>
	</repositories>

	<modules>
		<module>grid</module>
		<module>ssap</module>
		<module>support</module>
		<module>script</module>
		<module>process</module>
		<module>sib</module>
		<module>console</module>
		<module>plugins</module>
	</modules>

	<dependencyManagement>
		<dependencies>
			<!-- grid -->
			<dependency>
				<groupId>com.indra.sofia2.grid</groupId>
				<artifactId>grid_client</artifactId>
				<version>${project.version}</version>
			</dependency>
			<dependency>
				<groupId>com.indra.sofia2.grid</groupId>
				<artifactId>grid</artifactId>
				<version>${project.version}</version>
			</dependency>
			<!-- ssap-->
			<dependency>
				<groupId>com.indra.sofia2.ssap</groupId>
				<artifactId>ssap</artifactId>
				<version>${project.version}</version>
			</dependency>
			<!-- support -->
			<dependency>
				<groupId>com.indra.sofia2.support</groupId>
				<artifactId>entity</artifactId>
				<version>${project.version}</version>
			</dependency>
			<dependency>
				<groupId>com.indra.sofia2.support</groupId>
				<artifactId>bbdd</artifactId>
				<version>${project.version}</version>
			</dependency>
			<dependency>
				<groupId>com.indra.sofia2.support</groupId>
				<artifactId>parseql</artifactId>
				<version>${project.version}</version>
			</dependency>
			<dependency>
				<groupId>com.indra.sofia2.support</groupId>
				<artifactId>util</artifactId>
				<version>${project.version}</version>
			</dependency>
			<!-- script -->
			<dependency>
				<groupId>com.indra.sofia2.script</groupId>
				<artifactId>script_client</artifactId>
				<version>${project.version}</version>
			</dependency>
			<dependency>
				<groupId>com.indra.sofia2.script</groupId>
				<artifactId>script</artifactId>
				<version>${project.version}</version>
			</dependency>
			<!-- process -->
			<dependency>
				<groupId>com.indra.sofia2.process</groupId>
				<artifactId>process-client</artifactId>
				<version>${project.version}</version>
			</dependency>
			<dependency>
				<groupId>com.indra.sofia2.process</groupId>
				<artifactId>process</artifactId>
				<version>${project.version}</version>
			</dependency>
			<!-- sib -->
			<dependency>
				<groupId>com.indra.sofia2.sib</groupId>
				<artifactId>core</artifactId>
				<version>${project.version}</version>
			</dependency>
		</dependencies>
	</dependencyManagement>
	
	<dependencies>
		<dependency>
			<groupId>com.indra.jee.arq.spring</groupId>
			<artifactId>arq-spring-core</artifactId>
		</dependency>
		<!-- common -->
		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-aspects</artifactId>
			<version>${spring.version}</version>
		</dependency>
		<!-- ROO dependencies -->
		<dependency>
			<groupId>org.springframework.roo</groupId>
			<artifactId>org.springframework.roo.annotations</artifactId>
			<version>${roo.version}</version>
			<scope>provided</scope>
			<exclusions>
				<exclusion>
					<artifactId>servlet-api</artifactId>
					<groupId>javax.servlet</groupId>
				</exclusion>
			</exclusions>
		</dependency>
		<dependency>
			<groupId>commons-io</groupId>
			<artifactId>commons-io</artifactId>
			<version>2.4</version>
		</dependency>
		<!-- GOOGLE CORE -->
		<dependency>
			<groupId>com.google.guava</groupId>
			<artifactId>guava</artifactId>
			<version>14.0.1</version>
		</dependency>
	</dependencies>
	
	<build>
		<plugins>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>aspectj-maven-plugin</artifactId>
				<version>1.2</version>
				<!-- NB: do not use 1.3 or 1.3.x due to MASPECTJ-90 and do not use 1.4 
					due to declare parents issue -->
				<dependencies>
					<!-- NB: You must use Maven 2.0.9 or above or these are ignored (see 
						MNG-2972) -->
					<dependency>
						<groupId>org.aspectj</groupId>
						<artifactId>aspectjrt</artifactId>
						<version>${aspectj.version}</version>
					</dependency>
					<dependency>
						<groupId>org.aspectj</groupId>
						<artifactId>aspectjtools</artifactId>
						<version>${aspectj.version}</version>
					</dependency>
				</dependencies>
				<executions>
					<execution>
						<goals>
							<goal>compile</goal>
							<goal>test-compile</goal>
						</goals>
					</execution>
				</executions>
				<configuration>
					<outxml>true</outxml>
					<aspectLibraries>
						<aspectLibrary>
							<groupId>org.springframework</groupId>
							<artifactId>spring-aspects</artifactId>
						</aspectLibrary>
						<aspectLibrary>
							<groupId>com.indra.jee.arq.spring</groupId>
							<artifactId>arq-spring-core</artifactId>
						</aspectLibrary>
					</aspectLibraries>
					<source>${java.version}</source>
					<target>${java.version}</target>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-eclipse-plugin</artifactId>
				<version>2.7</version>
				<!-- Note 2.8 does not work with AspectJ aspect path -->
				<configuration>
					<downloadSources>true</downloadSources>
					<downloadJavadocs>false</downloadJavadocs>
					<wtpversion>2.0</wtpversion>
					<additionalBuildcommands>
						<buildCommand>
							<name>org.eclipse.ajdt.core.ajbuilder</name>
							<arguments>
								<aspectPath>org.springframework.aspects</aspectPath>
							</arguments>
						</buildCommand>
						<buildCommand>
							<name>org.springframework.ide.eclipse.core.springbuilder</name>
						</buildCommand>
					</additionalBuildcommands>
					<additionalProjectnatures>
						<projectnature>org.eclipse.ajdt.ui.ajnature</projectnature>
						<projectnature>com.springsource.sts.roo.core.nature</projectnature>
						<projectnature>org.springframework.ide.eclipse.core.springnature</projectnature>
					</additionalProjectnatures>
				</configuration>
			</plugin>
		</plugins>
		<pluginManagement>
			<plugins>
				<!--This plugin's configuration is used to store Eclipse m2e settings 
					only. It has no influence on the Maven build itself. -->
				<plugin>
					<groupId>org.eclipse.m2e</groupId>
					<artifactId>lifecycle-mapping</artifactId>
					<version>1.0.0</version>
					<configuration>
						<lifecycleMappingMetadata>
							<pluginExecutions>
								<pluginExecution>
									<pluginExecutionFilter>
										<groupId>
											org.codehaus.mojo
										</groupId>
										<artifactId>
											aspectj-maven-plugin
										</artifactId>
										<versionRange>
											[1.2,)
										</versionRange>
										<goals>
											<goal>test-compile</goal>
										</goals>
									</pluginExecutionFilter>
									<action>
										<ignore></ignore>
									</action>
								</pluginExecution>
							</pluginExecutions>
						</lifecycleMappingMetadata>
					</configuration>
				</plugin>
			</plugins>
		</pluginManagement>
	</build>
</project>
