<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.overlord.rtgov.samples.jbossas</groupId>
	<artifactId>parent</artifactId>
	<version>2.0.0.Beta3</version>
	<packaging>pom</packaging>
	<name>Overlord RTGov::Samples::JBossAS</name>
	<url>http://www.overlord.org</url>
	<description>
		The Overlord Runtime Governance project - JBossAS Samples
	</description>

	<parent>
		<groupId>org.jboss.integration-platform</groupId>
		<artifactId>jboss-integration-platform-parent</artifactId>
		<version>6.0.0.CR9</version>
	</parent>

	<scm>
		<connection>https://github.com/Governance</connection>
		<url>https://github.com/Governance</url>
	</scm>

	<licenses>
		<license>
			<name>Apache License</name>
			<url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
			<distribution>repo</distribution>
			<comments>Apache License</comments>
		</license>
	</licenses>

	<properties>
		<version.javax.javaee-api>6.0</version.javax.javaee-api>
		<version.org.jboss.spec.jboss-javaee-6.0>1.0.0.Final</version.org.jboss.spec.jboss-javaee-6.0>
		<jbossas.version>7.2.0.Final</jbossas.version>
		<version.org.overlord.overlord-commons>2.0.8-SNAPSHOT</version.org.overlord.overlord-commons>
		<version.org.switchyard>2.0.0.Alpha2</version.org.switchyard>
	</properties>

	<modules>
		<module>activityclient</module>
		<module>ordermgmt</module>
		<module>policy</module>
		<module>sla</module>
	</modules>

	<dependencyManagement>
		<dependencies>
			<!-- Imported dependencies -->
			<dependency>
				<groupId>org.jboss.integration-platform</groupId>
				<artifactId>jboss-integration-platform-bom</artifactId>
				<version>6.0.0.CR9</version>
				<type>pom</type>
				<scope>import</scope>
			</dependency>

            <!-- Internal dependencies -->
			<dependency>
				<groupId>org.overlord.rtgov.common</groupId>
				<artifactId>rtgov-common</artifactId>
				<version>${project.version}</version>
			</dependency>
			<dependency>
				<groupId>org.overlord.rtgov.common</groupId>
				<artifactId>rtgov-infinispan</artifactId>
				<version>${project.version}</version>
			</dependency>

		    <dependency>
			    <groupId>org.overlord.rtgov.activity-analysis</groupId>
			    <artifactId>analytics</artifactId>
				<version>${project.version}</version>
		    </dependency>

		    <dependency>
			    <groupId>org.overlord.rtgov.active-queries</groupId>
			    <artifactId>active-collection</artifactId>
				<version>${project.version}</version>
		    </dependency>

			<dependency>
				<groupId>org.overlord.rtgov.activity-management</groupId>
				<artifactId>activity</artifactId>
				<version>${project.version}</version>
			</dependency>
			<dependency>
				<groupId>org.overlord.rtgov.activity-management</groupId>
				<artifactId>activity-embedded</artifactId>
				<version>${project.version}</version>
			</dependency>
			<dependency>
				<groupId>org.overlord.rtgov.activity-management</groupId>
				<artifactId>collector-activity-server</artifactId>
				<version>${project.version}</version>
			</dependency>
		    <dependency>
			    <groupId>org.overlord.rtgov.activity-management</groupId>
			    <artifactId>ip-loader-jee</artifactId>
			    <version>${project.version}</version>
		    </dependency>
			<dependency>
				<groupId>org.overlord.rtgov.activity-management</groupId>
				<artifactId>activity-server-restc</artifactId>
				<version>${project.version}</version>
			</dependency>
		    <dependency>
			    <groupId>org.overlord.rtgov.activity-management</groupId>
			    <artifactId>av-loader-jee</artifactId>
			    <version>${project.version}</version>
		    </dependency>

		    <dependency>
			    <groupId>org.overlord.rtgov.event-processor</groupId>
			    <artifactId>ep-core</artifactId>
				<version>${project.version}</version>
		    </dependency>
		    <dependency>
			    <groupId>org.overlord.rtgov.event-processor</groupId>
			    <artifactId>ep-drools</artifactId>
			    <version>${project.version}</version>
		    </dependency>
		    <dependency>
			    <groupId>org.overlord.rtgov.event-processor</groupId>
			    <artifactId>ep-mvel</artifactId>
			    <version>${project.version}</version>
		    </dependency>

		    <dependency>
			    <groupId>org.overlord.rtgov.event-processor-network</groupId>
			    <artifactId>epn-core</artifactId>
				<version>${project.version}</version>
		    </dependency>
		    <dependency>
			    <groupId>org.overlord.rtgov.event-processor-network</groupId>
			    <artifactId>epn-loader-jee</artifactId>
				<version>${project.version}</version>
		    </dependency>
		    <dependency>
			    <groupId>org.overlord.rtgov.event-processor-network</groupId>
			    <artifactId>epn-container-embedded</artifactId>
			    <version>${project.version}</version>
		    </dependency>

		    <dependency>
			    <groupId>org.overlord.rtgov.integration</groupId>
			    <artifactId>rtgov-client</artifactId>
				<version>${project.version}</version>
		    </dependency>
		    <dependency>
			    <groupId>org.overlord.rtgov.integration</groupId>
			    <artifactId>rtgov-switchyard</artifactId>
				<version>${project.version}</version>
		    </dependency>

            <!-- Other dependencies -->
			<dependency>
				<groupId>javax</groupId>
				<artifactId>javaee-api</artifactId>
				<version>${version.javax.javaee-api}</version>
			</dependency>
			<dependency>
				<groupId>org.switchyard</groupId>
				<artifactId>switchyard-api</artifactId>
				<version>${version.org.switchyard}</version>
			</dependency>
			<dependency>
				<groupId>org.switchyard</groupId>
				<artifactId>switchyard-plugin</artifactId>
				<version>${version.org.switchyard}</version>
			</dependency>
			<dependency>
				<groupId>org.switchyard</groupId>
				<artifactId>switchyard-extensions-wsdl</artifactId>
				<version>${version.org.switchyard}</version>
			</dependency>
			<dependency>
				<groupId>org.switchyard.components</groupId>
				<artifactId>switchyard-component-bean</artifactId>
				<version>${version.org.switchyard}</version>
			</dependency>
			<dependency>
				<groupId>org.switchyard.components</groupId>
				<artifactId>switchyard-component-soap</artifactId>
				<version>${version.org.switchyard}</version>
			</dependency>
			<dependency>
				<groupId>org.switchyard</groupId>
				<artifactId>switchyard-test</artifactId>
				<version>${version.org.switchyard}</version>
			</dependency>
			<dependency>
				<groupId>org.switchyard.components</groupId>
				<artifactId>switchyard-component-test-mixin-http</artifactId>
				<version>${version.org.switchyard}</version>
			</dependency>
			<dependency>
				<groupId>org.switchyard</groupId>
				<artifactId>switchyard-remote</artifactId>
				<version>${version.org.switchyard}</version>
			</dependency>

			<dependency>
				<groupId>org.jboss.spec</groupId>
				<artifactId>jboss-javaee-6.0</artifactId>
				<version>${version.org.jboss.spec.jboss-javaee-6.0}</version>
				<type>pom</type>
			</dependency>

		</dependencies>
	</dependencyManagement>

	<build>
		<!-- This section defines the default plugin settings inherited by child projects. -->
		<pluginManagement>
			<plugins>
				<plugin>
					<groupId>org.switchyard</groupId>
					<artifactId>switchyard-plugin</artifactId>
					<version>${version.org.switchyard}</version>
				</plugin>

				<plugin>
					<groupId>org.jboss.as.plugins</groupId>
					<artifactId>jboss-as-maven-plugin</artifactId>
					<configuration>
						<skip>true</skip>
					</configuration>
				</plugin>
			</plugins>
		</pluginManagement>
		<plugins>
            <plugin>
                <artifactId>maven-enforcer-plugin</artifactId>
                <executions>
                    <!-- Disable 'require plugin versions' for now as switchyard is using snapshot -->
                    <execution>
                        <id>enforce-plugin-versions</id>
                        <phase>none</phase>
                    </execution>
                    <execution>
                        <id>enforce-victims-rule</id>
                        <goals>
                            <goal>enforce</goal>
                        </goals>
                        <configuration>
                            <rules>
                                <rule implementation="com.redhat.victims.VictimsRule">
                                   <metadata>warning</metadata>
                                    <fingerprint>fatal</fingerprint>
                                    <updates>${victims.updates}</updates>
                                </rule>
                            </rules>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-checkstyle-plugin</artifactId>
				<configuration>
					<configLocation>checkstyle/checkstyle.xml</configLocation>
					<consoleOutput>true</consoleOutput>
					<suppressionsLocation>checkstyle/suppressions.xml</suppressionsLocation>
					<failsOnError>true</failsOnError>
					<useFile/>
				</configuration>
				<dependencies>
					<dependency>
						<groupId>org.overlord</groupId>
						<artifactId>overlord-commons-build</artifactId>
						<version>${version.org.overlord.overlord-commons}</version>
					</dependency>
				</dependencies>
				<executions>
					<execution>
						<id>check-style</id>
						<phase>package</phase>
						<goals>
							<goal>checkstyle</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>

	<repositories>
	    <repository>
	        <id>jboss-public-repository-group</id>
	        <name>JBoss Public Maven Repository Group</name>
	        <url>https://repository.jboss.org/nexus/content/groups/public/</url>
	        <releases>
	            <enabled>true</enabled>
	            <updatePolicy>never</updatePolicy>
	        </releases>
	        <snapshots>
	            <enabled>true</enabled>
	            <updatePolicy>never</updatePolicy>
	        </snapshots>
	    </repository>
	</repositories>

	<pluginRepositories>
		<pluginRepository>
			<id>jboss-public-repository-group</id>
			<name>JBoss Public Maven Repository Group</name>
			<url>https://repository.jboss.org/nexus/content/groups/public/</url>
			<layout>default</layout>
			<releases>
				<updatePolicy>never</updatePolicy>
			</releases>
			<snapshots>
				<updatePolicy>never</updatePolicy>
			</snapshots>
		</pluginRepository>
	</pluginRepositories>

</project>
