<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">

  <parent>
    <groupId>org.ow2</groupId>
    <artifactId>ow2</artifactId>
    <version>1.1</version>
  </parent>

  <modelVersion>4.0.0</modelVersion>
  <groupId>org.ow2.orchestra</groupId>
  <artifactId>orchestra-parent</artifactId>
  <packaging>pom</packaging>
  <version>4.2.0</version>
  <name>Orchestra :: Parent</name>
  <url>http://orchestra.ow2.org</url>
  
  <licenses>
    <license>
      <name>GNU Lesser General Public License Version 2.1</name>
      <url>http://www.gnu.org/licenses/lgpl.html</url>
    </license>
  </licenses>

  <properties>
    <novaBpmPerf.version>1.0</novaBpmPerf.version>
    <tomcat.version>5.5.23</tomcat.version>
    <jonas.version>5.1.0</jonas.version>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  </properties>

  <modules>
    <module>build-tools</module>
  </modules>
  
  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>org.ow2.orchestra</groupId>
        <artifactId>orchestra-pvm</artifactId>
        <version>${project.version}</version>
      </dependency>
      <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>3.8.1</version>
      </dependency>
      <dependency>
        <groupId>com.h2database</groupId>
        <artifactId>h2</artifactId>
        <version>1.1.119</version>
      </dependency>
      <dependency>
        <groupId>org.ow2.novabpm</groupId>
        <artifactId>novaBpmPerf</artifactId>
        <version>${novaBpmPerf.version}</version>
      </dependency>
      <dependency>
        <groupId>org.ow2.orchestra</groupId>
        <artifactId>orchestra-utils</artifactId>
        <version>${project.version}</version>
      </dependency>
      <dependency>
        <groupId>net.sourceforge.cobertura</groupId>
        <artifactId>cobertura</artifactId>
        <version>1.9</version>
      </dependency>
      <dependency>
        <groupId>javax.servlet</groupId>
        <artifactId>servlet-api</artifactId>
        <version>2.3</version>
      </dependency>
    </dependencies>
  </dependencyManagement>
  
  <scm>
    <connection>scm:svn:svn:://svn.forge.objectweb.org/svnroot/orchestra/tags/OrchestraPVM/Orchestra-4.2.0</connection>
    <developerConnection>scm:svn:svn+ssh://svn.forge.objectweb.org/svnroot/orchestra/tags/OrchestraPVM/Orchestra-4.2.0</developerConnection>
    <url>http://fisheye.ow2.org/browse/Orchestra/tags/OrchestraPVM/Orchestra-4.2.0</url>
  </scm>
  
  <ciManagement>
    <system>bamboo</system>
    <url>http://bamboo.ow2.org/browse/ORCHESTRA</url>
  </ciManagement>
  
  <issueManagement>
    <url>http://forge.ow2.org/tracker/?group_id=266</url>
  </issueManagement>
  
  <build>
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-assembly-plugin</artifactId>
          <version>2.2-beta-4</version>
          <configuration>
            <!-- Use GNU Tar -->
            <tarLongFileMode>gnu</tarLongFileMode>
          </configuration>
        </plugin>
        <plugin>
         <artifactId>maven-antrun-plugin</artifactId>
         <version>1.3</version>
         <dependencies>
          <dependency>
            <groupId>org.apache.ant</groupId>
            <artifactId>ant-nodeps</artifactId>
            <version>1.7.1</version>
          </dependency>
          <dependency>
            <groupId>org.apache.ant</groupId>
            <artifactId>ant-junit</artifactId>
            <version>1.7.1</version>
          </dependency>
          <dependency>
            <groupId>org.apache.ant</groupId>
            <artifactId>ant-commons-net</artifactId>
            <version>1.7.1</version>
          </dependency>
          <dependency>
            <groupId>org.apache.ant</groupId>
            <artifactId>ant-trax</artifactId>
            <version>1.7.1</version>
          </dependency>
         </dependencies>
       </plugin>
      </plugins>
    </pluginManagement>        
    <plugins>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <source>1.5</source>
          <target>1.5</target>
          <showDeprecation>true</showDeprecation>
          <showWarnings>true</showWarnings>          
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-release-plugin</artifactId>
        <configuration>
          <tagBase>
            svn+ssh://svn.forge.objectweb.org/svnroot/orchestra/tags/OrchestraPVM
          </tagBase>
        </configuration>
      </plugin>
      <!-- prepare future integration test -->
      <plugin>
        <groupId>org.ow2.util</groupId>
        <artifactId>util-maven-plugin-propertyeditor</artifactId>
        <version>1.0.12</version>
        <inherited>false</inherited>
        <executions>
          <execution>
            <goals>
              <goal>edit</goal>
            </goals>
            <id>update-build-properties</id>
            <phase>package</phase>
            <configuration>
              <editorConfigurations>
                <editorConfiguration>
                  <fileName>${project.basedir}/build.properties</fileName>
                  <createFile>true</createFile>
                  <editorOperations>
                    <!-- PROJECT VERSIONS -->
                    <editorOperation>
                      <property>orchestra.version</property>
                      <value>${project.version}</value>
                    </editorOperation>
                  </editorOperations>
                </editorConfiguration>
              </editorConfigurations>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <repositories>
    <repository>
      <id>jboss</id>
      <name>JBoss Maven2 repository</name>
      <url>http://repository.jboss.com/maven2/</url>
      <snapshots>
        <enabled>false</enabled>
      </snapshots>
      <releases>
        <enabled>true</enabled>
      </releases>
    </repository>
    <repository>
      <id>jboss-snapshot</id>
      <name>JBoss Maven2 snapshot repository</name>
      <url>http://snapshots.jboss.org/maven2/</url>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
      <releases>
        <enabled>false</enabled>
      </releases>
    </repository>
  </repositories>

  <profiles>
    <profile>
      <id>modules</id>
      <activation>
        <property>
          <name>!eclipse.buildId</name>
        </property>
      </activation>      
      <modules>
        <module>modules</module>
        <module>packages</module> 
      </modules>  
    </profile>
    
    <profile>
      <id>buildDoc</id>
      <activation>
        <property>
          <name>!skipDoc</name>
        </property>
      </activation>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-javadoc-plugin</artifactId>
            <configuration>
              <aggregate>true</aggregate>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
</project>
