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

    <groupId>org.mule.examples</groupId>
    <artifactId>mule-example-bookstore-parent</artifactId>
    <version>1.0</version>
    <packaging>pom</packaging>
    <name>Bookstore Example</name>
    <description>Bookstore Example App</description>

    <properties>
        <muleVersion>2.2.1</muleVersion>
        <cxfVersion>2.1.2</cxfVersion>
        <geronimoSpecsWsMetadataVersion>1.1.2</geronimoSpecsWsMetadataVersion>
        <jettyVersion>6.1.11</jettyVersion>
        <xalanVersion>2.7.1</xalanVersion>
    </properties>

    <modules>
        <module>api</module>
        <module>admin-web</module>
        <module>bookstore-web</module>
    </modules>

    <build>
        <!-- TODO We could make tomcat:run the top-level goal so that typing "mvn" would run both webapps.
        However, there's no way to fork the two modules yet, so the first one blocks the second one, see:
        https://jira.codehaus.org/browse/MTOMCAT-20

        <defaultGoal>tomcat:run</defaultGoal>
        -->
        
        <defaultGoal>install</defaultGoal>

        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.5</source>
                    <target>1.5</target>
                    <encoding>ISO-8859-1</encoding>
                </configuration>
            </plugin>
        </plugins>
    </build>

    <distributionManagement>
        <downloadUrl>http://mule.mulesource.org/display/MULE/Download</downloadUrl>
        <repository>
            <id>mule-releases</id>
            <name>Mule Release Repository</name>
            <url>dav:https://dav.codehaus.org/repository/mule/</url>
        </repository>
        <snapshotRepository>
            <id>mule-snapshots</id>
            <name>Mule Snapshot Repository</name>
            <url>dav:https://dav.codehaus.org/snapshots.repository/mule/</url>
            <uniqueVersion>false</uniqueVersion>
        </snapshotRepository>
        <site>
            <id>mule-site</id>
            <name>Mule Website</name>
            <url>dav:https://dav.codehaus.org/mule/docs/${version}</url>
        </site>
    </distributionManagement>
    <repositories>
        <repository>
            <id>codehaus</id>
            <name>Codehaus Release Repository</name>
            <url>http://repository.codehaus.org</url>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </repository>
        <repository>
            <id>codehaus-snapshots</id>
            <name>Codehaus Snapshots Repository</name>
            <url>http://snapshots.repository.codehaus.org</url>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
            <releases>
                <enabled>false</enabled>
            </releases>
        </repository>
    </repositories>
</project>
