<?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/xsd/maven-4.0.0.xsd">
   <modelVersion>4.0.0</modelVersion>

   <parent>
      <groupId>com.rackspace.papi</groupId>
      <artifactId>profile-support</artifactId>
      <version>2.3.2</version>
   </parent>

   <groupId>com.rackspace.papi.commons</groupId>
   <artifactId>commons-support</artifactId>
   <version>2.3.2</version>
        
   <name>Repose Commons - Commons Support</name>

   <packaging>pom</packaging>

   <modules>
      <module>utilities</module>
      <module>configuration</module>
      <module>classloader</module>
      <module>jetty</module>
   </modules>

   <dependencyManagement>
      <dependencies>
         <dependency>
            <groupId>com.rackspace.papi.external</groupId>
            <artifactId>jee6-schemas</artifactId>
            <version>2.3.2</version>
         </dependency>
            
         <dependency>
            <groupId>com.rackspace.papi.commons</groupId>
            <artifactId>utilities</artifactId>
            <version>${project.version}</version>
         </dependency>

         <dependency>
            <groupId>com.rackspace.papi.commons</groupId>
            <artifactId>configuration</artifactId>
            <version>${project.version}</version>
         </dependency>
            
         <dependency>
            <groupId>commons-lang</groupId>
            <artifactId>commons-lang</artifactId>
            <version>2.5</version>
         </dependency>
            
         <dependency>
            <groupId>org.eclipse.jetty</groupId>
            <artifactId>jetty-webapp</artifactId>
            <version>8.0.1.v20110908</version>
         </dependency>

         <dependency>
            <groupId>org.eclipse.jetty</groupId>
            <artifactId>jetty-server</artifactId>
            <version>8.0.1.v20110908</version>
         </dependency>

         <dependency>
            <groupId>org.eclipse.jetty</groupId>
            <artifactId>jetty-servlet</artifactId>
            <version>8.0.1.v20110908</version>
         </dependency>

         <dependency>
            <groupId>org.codehaus.jackson</groupId>
            <artifactId>jackson-mapper-lgpl</artifactId>
            <version>1.9.4</version>
            <type>jar</type>
         </dependency>
      
         <dependency>
            <groupId>org.codehaus.jackson</groupId>
            <artifactId>jackson-xc</artifactId>
            <version>1.9.4</version>
         </dependency>
      
      </dependencies>
   </dependencyManagement>

   <build>
      <plugins>
         <plugin>
            <artifactId>maven-antrun-plugin</artifactId>

            <executions>
               <execution>
                  <id>doxygen-generate</id>

                  <phase>generate-resources</phase>
                  <inherited>false</inherited>

                  <goals>
                     <goal>run</goal>
                  </goals>

                        <!-- TODO: Read this -> http://www.stack.nl/~dimitri/doxygen/custcmd.html -->

                  <configuration>
                     <target>
                        <mkdir dir="${project.basedir}/target" />

                        <exec dir="${project.basedir}" executable="doxygen">
                           <arg value="rc-commons-doxygen.config" />
                        </exec>
                     </target>
                  </configuration>
               </execution>
            </executions>
         </plugin>
      </plugins>
   </build>
</project>

