<?xml version="1.0" encoding="UTF-8"?>
<!--
/* 
 * JBoss, Home of Professional Open Source 
 * Copyright 2011 Red Hat Inc. and/or its affiliates and other contributors
 * as indicated by the @author tags. All rights reserved. 
 * See the copyright.txt in the distribution for a 
 * full listing of individual contributors.
 *
 * This copyrighted material is made available to anyone wishing to use, 
 * modify, copy, or redistribute it subject to the terms and conditions 
 * of the GNU Lesser General Public License, v. 2.1. 
 * This program is distributed in the hope that it will be useful, but WITHOUT A 
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 
 * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details. 
 * You should have received a copy of the GNU Lesser General Public License, 
 * v.2.1 along with this distribution; if not, write to the Free Software 
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
 * MA  02110-1301, USA.
 */
-->
<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.switchyard</groupId>
  <artifactId>switchyard-parent</artifactId>
  <version>0.3.0.Final</version>
  <packaging>pom</packaging>
  <name>SwitchYard</name>

  <description>The parent for SwitchYard modules</description>
  <url>http://switchyard.org</url>
  <organization>
    <name>JBoss by Red Hat</name>
    <url>http://jboss.org</url>
  </organization>
  <issueManagement>
    <system>jira</system>
    <url>http://jira.jboss.org/browse/SWITCHYARD</url>
  </issueManagement>

   <developers>
      <developer>
         <name>SwitchYard committers</name>
      </developer>
   </developers>

   <licenses>
      <license>
         <name>GNU Lesser General Public License</name>
         <url>http://www.gnu.org/copyleft/lesser.html</url>
         <distribution>repo</distribution>
      </license>
   </licenses>

  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <version.antlr>3.3</version.antlr>
    <version.drools>5.2.1.Final</version.drools>
    <version.ecj>3.5.1</version.ecj>
    <version.forge>1.0.0.Alpha4</version.forge>
    <version.freemarker>2.3.15</version.freemarker>
    <version.hamcrest>1.1</version.hamcrest>
    <version.jaxen>1.1.1</version.jaxen>
    <version.jbpm>5.1.1.Final</version.jbpm>
    <version.junit>4.8.1</version.junit>
    <version.log4j>1.2.14</version.log4j>
    <version.maven.plugin.api>3.0.2</version.maven.plugin.api>
    <version.maven.plugin.deploy>2.6</version.maven.plugin.deploy>
    <version.maven.plugin.plugin>2.5.1</version.maven.plugin.plugin>
    <version.milyn>1.5</version.milyn>
    <version.mockito>1.8.5</version.mockito>
    <version.mvel>2.1.Beta6</version.mvel>
    <version.project>${project.version}</version.project>
    <version.protostuff>1.0.4</version.protostuff>
    <version.slf4j>1.6.1</version.slf4j>
    <version.xmlunit>1.1</version.xmlunit>
    <version.xstream>1.2.2</version.xstream>
  </properties>

  <scm>
    <connection>scm:git:ssh//github.com/switchyard/core.git</connection>
    <developerConnection>scm:git:ssh://github.com/switchyard/core.git</developerConnection>
    <url>http://github.com/switchyard/core</url>
  </scm>

  <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>
      <layout>default</layout>
      <releases>
          <enabled>true</enabled>
        <updatePolicy>never</updatePolicy>
      </releases>
      <snapshots>
          <enabled>true</enabled>
        <updatePolicy>never</updatePolicy>
      </snapshots>
    </repository>
      <repository>
      <id>codehaus.m2.snapshots</id>
      <url>http://snapshots.repository.codehaus.org</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>

  <build>
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>exec-maven-plugin</artifactId>
          <version>1.2.1</version>
        </plugin>
      </plugins>
    </pluginManagement>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-site-plugin</artifactId>
        <version>2.2</version>
        <configuration>
          <siteDirectory>build/src/site</siteDirectory>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-jar-plugin</artifactId>
        <version>2.3.1</version>
        <configuration>
          <archive>
            <manifest>
              <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
              <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
            </manifest>
            <addMavenDescriptor>true</addMavenDescriptor>
          </archive>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>2.3.2</version>
        <configuration>
          <source>1.6</source>
          <target>1.6</target>
          <debug>true</debug>
          <showWarnings>true</showWarnings>
          <showDeprecation>true</showDeprecation>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-resources-plugin</artifactId>
        <version>2.4.3</version>
        <configuration>
          <encoding>${project.build.sourceEncoding}</encoding>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>2.6</version>
        <configuration>
          <environmentVariables>
            <SWITCHYARD_VERSION>${project.version}</SWITCHYARD_VERSION>
          </environmentVariables>
          <includes>
            <include>**/*Test*.java</include>
          </includes>
          <excludes>
            <exclude>**/Abstract*.java</exclude>
            <exclude>**/*$*</exclude>
          </excludes>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-eclipse-plugin</artifactId>
        <version>2.8</version>
        <configuration>
          <downloadSources>true</downloadSources>
          <!--
                    A true value would hardcode the user's home dir rather than
                    using the cross-user-compatible M2_REPO classpath var!
                    -->
          <downloadJavadocs>false</downloadJavadocs>
        </configuration>
      </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-checkstyle-plugin</artifactId>
          <version>2.6</version>
            <configuration>
              <configLocation>checkstyle/checkstyle.xml</configLocation>
              <consoleOutput>false</consoleOutput>
              <suppressionsLocation>checkstyle/suppressions.xml</suppressionsLocation>
              <failsOnError>false</failsOnError>
              <useFile/>
            </configuration>
          <dependencies>
            <dependency>
              <groupId>org.switchyard</groupId>
              <artifactId>switchyard-build</artifactId>
              <version>${project.version}</version>
            </dependency>
          </dependencies>
          <executions>
            <execution>
              <id>check-style</id>
              <phase>site</phase>
              <goals>
                <goal>checkstyle</goal>
              </goals>
            </execution>
          </executions>
        </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>findbugs-maven-plugin</artifactId>
        <version>2.3.2-SNAPSHOT</version>
        <configuration>
          <excludeFilterFile>findbugs/findbugs-exclude.xml</excludeFilterFile>
          <threshold>Normal</threshold>
          <effort>Max</effort>
          <xmlOutput>true</xmlOutput>
        </configuration>
        <dependencies>
          <dependency>
            <groupId>org.switchyard</groupId>
            <artifactId>switchyard-build</artifactId>
            <version>${project.version}</version>
          </dependency>
        </dependencies>
        <executions>
          <execution>
            <id>find-bugs</id>
            <goals>
              <goal>findbugs</goal>
            </goals>
            <phase>site</phase>
          </execution>
        </executions>
      </plugin>
      <!-- Attach sources -->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-source-plugin</artifactId>
        <version>2.1.1</version>
        <executions>
          <execution>
             <id>attach-sources</id>
             <phase>verify</phase>
             <goals>
               <goal>jar-no-fork</goal>
             </goals>
          </execution>
        </executions>
      </plugin>
    </plugins> 
  </build>

  <profiles>
    <profile>
      <id>javadoc-uml</id>
      <activation>
        <activeByDefault>false</activeByDefault>
        <property>
          <name>javadoc.uml</name>
        </property>
      </activation>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-javadoc-plugin</artifactId>
            <version>2.7</version>
            <executions>
              <execution>
                <id>aggregate</id>
                <goals>
                  <goal>aggregate</goal>
                </goals>
                <phase>site</phase>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
      <reporting>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-javadoc-plugin</artifactId>
            <version>2.7</version>
            <configuration>
              <doclet>org.jboss.apiviz.APIviz</doclet>
              <docletArtifact>
                <groupId>org.jboss.apiviz</groupId>
                <artifactId>apiviz</artifactId>
                <version>1.3.1.GA</version>
              </docletArtifact>
              <charset>${project.build.sourceEncoding}</charset>
              <encoding>${project.build.sourceEncoding}</encoding>
              <docencoding>${project.build.sourceEncoding}</docencoding>
              <breakiterator>true</breakiterator>
              <keywords>true</keywords>
              <linksource>true</linksource>
              <quiet>true</quiet>
              <doctitle>SwitchYard ${project.version}</doctitle>
              <groups>
                <group>
                  <title>Core API</title>
                  <packages>org.switchyard*</packages>
                </group>
                <group>
                  <title>Core Runtime</title>
                  <packages>org.switchyard.internal*</packages>
                </group>
                <group>
                  <title>Components</title>
                  <packages>org.switchyard.component*</packages>
                </group>
                <group>
                  <title>Configuration</title>
                  <packages>org.switchyard.config*</packages>
                </group>
              </groups>
              <links>
                <link>http://download.oracle.com/javase/6/docs/api/</link>
              </links>
            </configuration>
            <reportSets>
              <reportSet>
                <id>non-aggregate</id>
                <reports>
                  <report>javadoc</report>
                </reports>
              </reportSet>
              <reportSet>
                <id>aggregate</id>
                <reports>
                  <report>aggregate</report>
                </reports>
              </reportSet>
            </reportSets>
          </plugin>
        </plugins>
      </reporting>
    </profile>
    <profile>
      <id>javadoc-nouml</id>
      <activation>
        <activeByDefault>false</activeByDefault>
        <property>
          <name>!javadoc.uml</name>
        </property>
      </activation>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-javadoc-plugin</artifactId>
            <version>2.7</version>
            <executions>
              <execution>
                <id>aggregate</id>
                <goals>
                  <goal>aggregate</goal>
                </goals>
                <phase>site</phase>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
      <reporting>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-javadoc-plugin</artifactId>
            <version>2.7</version>
            <configuration>
              <charset>${project.build.sourceEncoding}</charset>
              <encoding>${project.build.sourceEncoding}</encoding>
              <docencoding>${project.build.sourceEncoding}</docencoding>
              <breakiterator>true</breakiterator>
              <keywords>true</keywords>
              <linksource>true</linksource>
              <quiet>true</quiet>
              <doctitle>SwitchYard ${project.version}</doctitle>
              <groups>
                <group>
                  <title>Core API</title>
                  <packages>org.switchyard*</packages>
                </group>
                <group>
                  <title>Core Runtime</title>
                  <packages>org.switchyard.internal*</packages>
                </group>
                <group>
                  <title>Components</title>
                  <packages>org.switchyard.component*</packages>
                </group>
                <group>
                  <title>Configuration</title>
                  <packages>org.switchyard.config*</packages>
                </group>
              </groups>
              <links>
                <link>http://download.oracle.com/javase/6/docs/api/</link>
              </links>
            </configuration>
            <reportSets>
              <reportSet>
                <id>non-aggregate</id>
                <reports>
                  <report>javadoc</report>
                </reports>
              </reportSet>
              <reportSet>
                <id>aggregate</id>
                <reports>
                  <report>aggregate</report>
                </reports>
              </reportSet>
            </reportSets>
          </plugin>
        </plugins>
      </reporting>
    </profile>
    <profile>
      <!-- https://cwiki.apache.org/confluence/display/MAVEN/Maven+3.x+and+site+plugin -->
      <id>maven-3</id>
      <activation>
        <activeByDefault>false</activeByDefault>
        <file>
          <exists>${basedir}</exists>
        </file>
      </activation>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-site-plugin</artifactId>
            <version>3.0-beta-3</version>
            <configuration>
              <siteDirectory>build/src/site</siteDirectory>
          <reportPlugins>
               <!-- The Dependencies report takes an obscene amount of 
        time to run. Leaving it out of the reportSet -->
               <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-project-info-reports-plugin</artifactId>
                 <version>2.4</version>
                 <reportSets>
                   <reportSet>
                     <reports>
                       <report>cim</report>
<!--
                       <report>dependency-management</report>
                       <report>dependency-convergence</report>
-->
                       <report>help</report>
                       <report>index</report>
                       <report>issue-tracking</report>
                       <report>license</report>
                       <report>mailing-list</report>
                       <report>modules</report>
                       <report>plugin-management</report>
                       <report>plugins</report>
                       <report>project-team</report>
                       <report>scm</report>
                       <report>summary</report>
                     </reports>
                   </reportSet>
                 </reportSets>
               </plugin>
          </reportPlugins>
            </configuration>
            <executions>
              <execution>
                <id>attach-descriptor</id>
                <goals>
                  <goal>attach-descriptor</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
  <reporting>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-checkstyle-plugin</artifactId>
        <version>2.6</version>
        <configuration>
          <configLocation>checkstyle/checkstyle.xml</configLocation>
          <consoleOutput>false</consoleOutput>
          <suppressionsLocation>checkstyle/suppressions.xml</suppressionsLocation>
          <failsOnError>false</failsOnError>
          <useFile/>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>findbugs-maven-plugin</artifactId>
        <version>2.3.2-SNAPSHOT</version>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-report-plugin</artifactId>
        <version>2.6</version>
        <configuration>
          <aggregate>true</aggregate>
        </configuration>
      </plugin>
    </plugins>
  </reporting>
  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>org.apache.maven</groupId>
        <artifactId>maven-plugin-api</artifactId>
        <version>${version.maven.plugin.api}</version>
        <scope>provided</scope>
      </dependency>
      <dependency>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-plugin-plugin</artifactId>
        <version>${version.maven.plugin.plugin}</version>
        <scope>provided</scope>
      </dependency>
      <dependency>
        <groupId>log4j</groupId>
        <artifactId>log4j</artifactId>
        <version>${version.log4j}</version>
      </dependency>
      <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>${version.junit}</version>
      </dependency>
      <dependency>
        <groupId>xmlunit</groupId>
        <artifactId>xmlunit</artifactId>
        <version>${version.xmlunit}</version>
     </dependency>
     <dependency>
        <groupId>com.dyuproject.protostuff</groupId>
        <artifactId>protostuff-api</artifactId>
        <version>${version.protostuff}</version>
     </dependency>
     <dependency>
        <groupId>com.dyuproject.protostuff</groupId>
        <artifactId>protostuff-core</artifactId>
        <version>${version.protostuff}</version>
     </dependency>
     <dependency>
        <groupId>com.dyuproject.protostuff</groupId>
        <artifactId>protostuff-collectionschema</artifactId>
        <version>${version.protostuff}</version>
     </dependency>
     <dependency>
        <groupId>com.dyuproject.protostuff</groupId>
        <artifactId>protostuff-runtime</artifactId>
        <version>${version.protostuff}</version>
     </dependency>
     <dependency>
        <groupId>com.dyuproject.protostuff</groupId>
        <artifactId>protostuff-json</artifactId>
        <version>${version.protostuff}</version>
     </dependency>
     <dependency>
        <groupId>com.dyuproject.protostuff</groupId>
        <artifactId>protostuff-xml</artifactId>
        <version>${version.protostuff}</version>
     </dependency>
     <dependency>
        <groupId>org.mockito</groupId>
        <artifactId>mockito-all</artifactId>
        <version>${version.mockito}</version>
     </dependency>
     <dependency>
        <groupId>org.hamcrest</groupId>
        <artifactId>hamcrest-all</artifactId>
        <version>${version.hamcrest}</version>
     </dependency>
     <dependency>
        <groupId>org.antlr</groupId>
        <artifactId>antlr-runtime</artifactId>
        <version>${version.antlr}</version>
      </dependency>
      <dependency>
          <groupId>org.drools</groupId>
          <artifactId>knowledge-api</artifactId>
          <version>${version.drools}</version>
      </dependency>
      <dependency>
          <groupId>org.drools</groupId>
          <artifactId>drools-core</artifactId>
          <version>${version.drools}</version>
      </dependency>
      <dependency>
          <groupId>org.drools</groupId>
          <artifactId>drools-compiler</artifactId>
          <version>${version.drools}</version>
      </dependency>
      <dependency>
          <groupId>org.drools</groupId>
          <artifactId>drools-persistence-jpa</artifactId>
          <version>${version.drools}</version>
      </dependency>
      <dependency>
          <groupId>org.eclipse.jdt.core.compiler</groupId>
          <artifactId>ecj</artifactId>
          <version>${version.ecj}</version>
      </dependency>
      <dependency>
          <groupId>org.jbpm</groupId>
          <artifactId>jbpm-bpmn2</artifactId>
          <version>${version.jbpm}</version>
      </dependency>
      <dependency>
          <groupId>org.jbpm</groupId>
          <artifactId>jbpm-flow</artifactId>
          <version>${version.jbpm}</version>
      </dependency>
      <dependency>
          <groupId>org.jbpm</groupId>
          <artifactId>jbpm-flow-builder</artifactId>
          <version>${version.jbpm}</version>
      </dependency>
      <dependency>
          <groupId>org.jbpm</groupId>
          <artifactId>jbpm-human-task</artifactId>
          <version>${version.jbpm}</version>
          <exclusions>
              <exclusion>
                  <groupId>xml-apis</groupId>
                  <artifactId>xml-apis</artifactId>
              </exclusion>
              <exclusion>
                  <groupId>xerces</groupId>
                  <artifactId>xercesimpl</artifactId>
              </exclusion>
              <exclusion>
                  <groupId>xerces</groupId>
                  <artifactId>xmlparserapis</artifactId>
              </exclusion>
              <exclusion>
                  <groupId>org.slf4j</groupId>
                  <artifactId>slf4j-api</artifactId>
              </exclusion>
          </exclusions>
      </dependency>
      <dependency>
          <groupId>org.jbpm</groupId>
          <artifactId>jbpm-persistence-jpa</artifactId>
          <version>${version.jbpm}</version>
          <exclusions>
              <exclusion>
                  <artifactId>hibernate-annotations</artifactId>
                  <groupId>org.hibernate</groupId>
              </exclusion>
              <exclusion>
                  <groupId>org.slf4j</groupId>
                  <artifactId>slf4j-api</artifactId>
              </exclusion>
          </exclusions>
      </dependency>
      <dependency>
          <groupId>org.jbpm</groupId>
          <artifactId>jbpm-workitems</artifactId>
          <version>${version.jbpm}</version>
      </dependency>
      <dependency>
          <groupId>org.mvel</groupId>
          <artifactId>mvel2</artifactId>
          <version>${version.mvel}</version>
      </dependency>
      <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-api</artifactId>
        <version>${version.slf4j}</version>
      </dependency>
      <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-log4j12</artifactId>
        <version>${version.slf4j}</version>
      </dependency>
      <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-ext</artifactId>
        <version>${version.slf4j}</version>
      </dependency>
    </dependencies>
  </dependencyManagement>
  <distributionManagement>
    <repository>
      <id>jboss-releases-repository</id>
      <name>JBoss Releases Repository</name>
      <url>https://repository.jboss.org/nexus/service/local/staging/deploy/maven2/</url>
    </repository>
    <snapshotRepository>
      <id>jboss-snapshots-repository</id>
      <name>JBoss Snapshots Repository</name>
      <url>https://repository.jboss.org/nexus/content/repositories/snapshots/</url>
    </snapshotRepository>
  </distributionManagement>
</project>
