<?xml version="1.0" encoding="UTF-8"?>
<!--
        Licensed to the Apache Software Foundation (ASF) under one or more
        contributor license agreements. See the NOTICE file distributed with
        this work for additional information regarding copyright ownership.
        The ASF licenses this file to you under the Apache License, Version
        2.0 (the "License"); you may not use this file except in compliance
        with the License. You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0 Unless required by
        applicable law or agreed to in writing, software distributed under the
        License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
        CONDITIONS OF ANY KIND, either express or implied. See the License for
        the specific language governing permissions and limitations under the
        License.
    -->
<!-- $Id: pom.xml 4739 2010-02-04 16:53:55Z benbosman $ -->
<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>
    <packaging>war</packaging>
    <groupId>org.dspace.discovery</groupId>
    <artifactId>discovery-xmlui-webapp</artifactId>
    <version>0.9.2</version>
    <name>DSpace Discovery :: Discovery XMLUI Webapp</name>

    <parent>
        <groupId>org.dspace.discovery</groupId>
        <artifactId>discovery-modules</artifactId>
        <version>0.9.2</version>
   </parent>

    <dependencies>

        <dependency>
                <groupId>org.dspace</groupId>
                <artifactId>dspace-xmlui-api</artifactId>
                <exclusions>
                	<exclusion>
                		<artifactId>solr-solrj</artifactId>
                		<groupId>org.apache.solr</groupId>
                	</exclusion>
                </exclusions>
            </dependency>

        <dependency>
            <groupId>org.dspace.discovery</groupId>
            <artifactId>discovery-xmlui-block</artifactId>
            <version>0.9.2</version>
        </dependency>

            <!-- external -->
            <dependency>
                <groupId>javax.servlet</groupId>
                <artifactId>servlet-api</artifactId>
                <scope>provided</scope>
            </dependency>



    </dependencies>

    <build>
        <plugins>
            <plugin>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.5</source>
                    <target>1.5</target>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.cocoon</groupId>
                <artifactId>cocoon-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <id>prepare</id>
                        <phase>compile</phase>
                        <goals>
                            <goal>prepare</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
               <groupId>org.apache.maven.plugins</groupId>
               <artifactId>maven-war-plugin</artifactId>
               <configuration>
                  <archiveClasses>false</archiveClasses>
                  <attachClasses>true</attachClasses>
                  <classesClassifier>classes</classesClassifier>
                   <failOnMissingWebXml>false</failOnMissingWebXml>
                   <packagingExcludes>WEB-INF/lib/*.jar</packagingExcludes>
                   <warSourceExcludes>WEB-INF/lib/*.jar</warSourceExcludes>
                   <webResources>
                      <resource>
                         <filtering>true</filtering>
                         <directory>${basedir}/src/main/webapp</directory>
                         <includes>
                            <include>WEB-INF/web.xml</include>
                         </includes>
                      </resource>
                   </webResources>
               </configuration>
               <executions>
                  <execution>
                     <phase>prepare-package</phase>
                  </execution>
               </executions>
            </plugin>
            <plugin>
                <groupId>org.mortbay.jetty</groupId>
                <artifactId>maven-jetty-plugin</artifactId>
                <version>6.1.7</version>
                <configuration>
                    <connectors>
                        <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
                            <port>8888</port>
                            <maxIdleTime>30000</maxIdleTime>
                        </connector>
                    </connectors>
                    <webAppSourceDirectory>${project.build.directory}/rcl/webapp</webAppSourceDirectory>
                    <contextPath>/</contextPath>
                    <systemProperties>
                        <systemProperty>
                            <name>org.apache.cocoon.mode</name>
                            <value>dev</value>
                        </systemProperty>
                    </systemProperties>
                </configuration>
            </plugin>
            <!--
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <configuration>
                    <archive>
                        <index>true</index>
                        <manifestEntries>
                            <Cocoon-Block-Name>discovery-xmlui-block</Cocoon-Block-Name>
                        </manifestEntries>
                    </archive>
                </configuration>
            </plugin>
            -->

            <plugin>
                <groupId>com.google.code.maven-license-plugin</groupId>
                <artifactId>maven-license-plugin</artifactId>
                <version>1.4.0</version>
                <configuration>
                    <header>http://scm.dspace.org/svn/repo/licenses/LICENSE_HEADER</header>
                    <excludes>
                        <exclude>target/**</exclude>
                        <exclude>m2-target/**</exclude>
                        <exclude>**/*.properties</exclude>
                        <exclude>src/main/webapp/static/**</exclude>
                    </excludes>
                    <properties />
                    <encoding>UTF-8</encoding>
                </configuration>
                <executions>
                    <execution>
                        <goals>
                            <goal>check</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

        </plugins>
    </build>

    <repositories>
        <repository>
            <id>maven.dspace.org-snapshot</id>
            <name>DSpace Maven Snapshot Repository</name>
            <url>http://maven.dspace.org/snapshot</url>
            <releases>
                <enabled>false</enabled>
                <checksumPolicy>fail</checksumPolicy>
            </releases>
            <snapshots>
                <enabled>true</enabled>
                <checksumPolicy>fail</checksumPolicy>
            </snapshots>
        </repository>
    </repositories>

    <!--
       The Subversion repository location is used by Continuum to update
       against when changes have occured, this spawns a new build cycle
       and releases snapshots into the snapshot repository below.
    -->
    <scm>
        <connection>scm:svn:http://scm.dspace.org/svn/repo/modules/dspace-discovery/tags/discovery-modules-0.9.2/block</connection>
        <developerConnection>
            scm:svn:https://scm.dspace.org/svn/repo/modules/dspace-discovery/tags/discovery-modules-0.9.2/block
        </developerConnection>
        <url>http://scm.dspace.org/svn/repo/modules/dspace-discovery/tags/discovery-modules-0.9.2/block</url>
    </scm>

</project>
