<?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">
    <parent>
        <artifactId>site</artifactId>
        <groupId>org.broadleafcommerce</groupId>
        <version>1.5.0-M5</version>
    </parent>
    <modelVersion>4.0.0</modelVersion>
    <!-- 'groupId' inherited from parent -->
    <artifactId>broadleaf-demo</artifactId>
    <packaging>war</packaging>
    <name>BroadleafCommerceDemo</name>
    <!-- 'version' inherited from parent -->
    <url>http://maven.apache.org</url>
    <properties>
        <webappDirectory>${project.build.directory}/${project.build.finalName}</webappDirectory>
    </properties>
    <build>
        <outputDirectory>${webappDirectory}/WEB-INF/classes</outputDirectory>
        <finalName>broadleafdemo</finalName>
        <plugins>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>gwt-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <configuration>
                          <extraJvmArgs>-Xmx512M -Xss1024k</extraJvmArgs>
                        </configuration>
                        <goals>
                            <goal>compile</goal>
                            <goal>test</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <style>DETAILED</style>
                    <modules>
                        <module>org.broadleafcommerce.admin.demoAdmin</module>
                    </modules>
                    <inplace>false</inplace>
                    <hostedWebapp>${webappDirectory}</hostedWebapp>
                    <bindAddress>0.0.0.0</bindAddress>
                    <debugPort>8001</debugPort>
                    <runTarget>broadleafdemo/admin.html</runTarget>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-war-plugin</artifactId>
                <configuration>
                    <webappDirectory>${webappDirectory}</webappDirectory>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.mortbay.jetty</groupId>
                <artifactId>maven-jetty-plugin</artifactId>
                <version>6.1.22</version>
                <configuration>
                    <webAppSourceDirectory>${webappDirectory}</webAppSourceDirectory>
                    <webApp>${webappDirectory}</webApp>
                    <contextPath>/broadleafdemo</contextPath>
                    <scanIntervalSeconds>10</scanIntervalSeconds>
                    <stopPort>9966</stopPort>
                    <stopKey>foo</stopKey>
                    <connectors>
                        <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
                            <port>8080</port>
                            <maxIdleTime>60000</maxIdleTime>
                        </connector>
                    </connectors>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.zeroturnaround</groupId>
                <artifactId>javarebel-maven-plugin</artifactId>
                <configuration>
                    <packaging>war</packaging>
                    <relativePath>../../</relativePath>
                    <rootPath>${basedir}/../..</rootPath>
                </configuration>
                <executions>
                    <execution>
                        <id>generate-rebel-xml</id>
                        <phase>process-resources</phase>
                        <goals>
                            <goal>generate</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
    <profiles>
        <profile>
            <id>gwt</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>build-helper-maven-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>add-resource</id>
                                <phase>generate-sources</phase>
                                <goals>
                                    <goal>add-resource</goal>
                                </goals>
                                <configuration>
                                    <resources>
                                        <resource>
                                            <directory>../../admin/BroadleafCommerceAdminModule/src/main/java
                                            </directory>
                                            <targetPath>./</targetPath>
                                        </resource>
                                        <resource>
                                            <directory>../../admin/BroadleafCommerceOpenAdminPlatform/src/main/java
                                            </directory>
                                            <targetPath>./</targetPath>
                                        </resource>
                                        <resource>
                                            <directory>../../admin/BroadleafCommerceCMSModule/src/main/java</directory>
                                            <targetPath>./</targetPath>
                                        </resource>
                                        <resource>
                                            <directory>../../admin/BroadleafCommerceCMSModule/src/main/resources
                                            </directory>
                                            <targetPath>./</targetPath>
                                        </resource>
                                        <resource>
                                            <directory>../../admin/BroadleafCommerceAdminModule/src/main/resources
                                            </directory>
                                            <targetPath>./</targetPath>
                                        </resource>
                                        <resource>
                                            <directory>../../admin/BroadleafCommerceOpenAdminPlatform/src/main/resources
                                            </directory>
                                            <targetPath>./</targetPath>
                                        </resource>
                                    </resources>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>
    <dependencies>
        <dependency>
            <groupId>org.broadleafcommerce</groupId>
            <artifactId>broadleaf-framework-web</artifactId>
            <exclusions>
                <exclusion>
                    <groupId>cobertura</groupId>
                    <artifactId>cobertura</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.broadleafcommerce</groupId>
            <artifactId>broadleaf-usps</artifactId>
            <exclusions>
                <exclusion>
                    <groupId>cobertura</groupId>
                    <artifactId>cobertura</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.broadleafcommerce</groupId>
            <artifactId>broadleaf-profile</artifactId>
            <classifier>sources</classifier>
            <exclusions>
                <exclusion>
                    <groupId>cobertura</groupId>
                    <artifactId>cobertura</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.broadleafcommerce</groupId>
            <artifactId>broadleaf-admin-module</artifactId>
            <exclusions>
                <exclusion>
                    <groupId>cobertura</groupId>
                    <artifactId>cobertura</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.broadleafcommerce</groupId>
            <artifactId>broadleaf-admin-module</artifactId>
            <classifier>sources</classifier>
            <exclusions>
                <exclusion>
                    <groupId>cobertura</groupId>
                    <artifactId>cobertura</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.broadleafcommerce</groupId>
            <artifactId>broadleaf-contentmanagement-module</artifactId>
            <exclusions>
                <exclusion>
                    <groupId>cobertura</groupId>
                    <artifactId>cobertura</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.broadleafcommerce</groupId>
            <artifactId>broadleaf-contentmanagement-module</artifactId>
            <classifier>sources</classifier>
            <exclusions>
                <exclusion>
                    <groupId>cobertura</groupId>
                    <artifactId>cobertura</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.broadleafcommerce</groupId>
            <artifactId>broadleaf-open-admin-platform</artifactId>
            <exclusions>
                <exclusion>
                    <groupId>cobertura</groupId>
                    <artifactId>cobertura</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.broadleafcommerce</groupId>
            <artifactId>broadleaf-open-admin-platform</artifactId>
            <classifier>sources</classifier>
            <exclusions>
                <exclusion>
                    <groupId>cobertura</groupId>
                    <artifactId>cobertura</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.hsqldb</groupId>
            <artifactId>hsqldb</artifactId>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>commons-dbcp</groupId>
            <artifactId>commons-dbcp</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.tiles</groupId>
            <artifactId>tiles-api</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.tiles</groupId>
            <artifactId>tiles-core</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.tiles</groupId>
            <artifactId>tiles-jsp</artifactId>
        </dependency>
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>servlet-api</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-instrument</artifactId>
        </dependency>
        <dependency>
            <groupId>com.icegreen</groupId>
            <artifactId>greenmail</artifactId>
            <version>1.3</version>
            <type>jar</type>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>com.google.gwt</groupId>
            <artifactId>gwt-user</artifactId>
        </dependency>
        <dependency>
            <groupId>org.tuckey</groupId>
            <artifactId>urlrewritefilter</artifactId>
        </dependency>
        <dependency>
            <groupId>commons-io</groupId>
            <artifactId>commons-io</artifactId>
        </dependency>
    </dependencies>
</project>