<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">

   <!--
      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.
   -->

   <modelVersion>4.0.0</modelVersion>

   <parent>
      <groupId>org.dspace</groupId>
      <artifactId>dspace-solr-parent</artifactId>
      <version>3.3.0.0</version>
   </parent>

   <groupId>org.dspace</groupId>
   <artifactId>dspace-solr</artifactId>
   <name>Apache Solr Webapp</name>
   <version>3.3.0.0</version>
   <description>Apache Solr Server</description>
   <packaging>war</packaging>

   <scm>
     <connection>
      scm:svn:https://scm.dspace.org/svn/repo/modules/dspace-solr/tags/dspace-solr-parent-3.3.0.0/webapp
     </connection>
     <developerConnection>
      scm:svn:https://scm.dspace.org/svn/repo/modules/dspace-solr/tags/dspace-solr-parent-3.3.0.0/webapp
     </developerConnection>
     <url>https://scm.dspace.org/svn/repo/modules/dspace-solr/tags/dspace-solr-parent-3.3.0.0/webapp</url>
  </scm>

   <build>
      <plugins>
         <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-war-plugin</artifactId>
            <version>2.1-alpha-2</version>
            <configuration>
              <!-- This 'dspace-solr' WAR overlays the Apache Solr Web Application 
                   available in Maven Central -->
              <overlays>
                <overlay>
                 <groupId>org.apache.solr</groupId>
                 <artifactId>solr</artifactId>
                </overlay>
              </overlays>
            </configuration>
            <executions>
               <execution>
                  <!-- This execution creates a normal WAR (with all JARs, etc)-->
                  <id>webapp</id>
                  <configuration>
                     <primaryArtifact>true</primaryArtifact>
                     <archiveClasses>true</archiveClasses>
                     <attachClasses>true</attachClasses>
                     <classesClassifier>classes</classesClassifier>
                     <warSourceExcludes>WEB-INF/classes/**</warSourceExcludes>
                     <packagingExcludes>WEB-INF/classes/**</packagingExcludes>
                  </configuration>
                  <goals>
                     <goal>war</goal>
                  </goals>
                  <phase>package</phase>
               </execution>
               <execution>
                  <!-- This execution creates a "skinny" WAR (without any JARs included)-->
                  <id>skinny</id>
                  <configuration>
                     <primaryArtifact>false</primaryArtifact>
                     <classifier>skinny</classifier>
                     <warSourceExcludes>WEB-INF/lib/**,WEB-INF/classes/**</warSourceExcludes>
                     <packagingExcludes>WEB-INF/lib/**,WEB-INF/classes/**</packagingExcludes>
                  </configuration>
                  <goals>
                     <goal>war</goal>
                  </goals>
                  <phase>package</phase>
               </execution>
            </executions>
         </plugin>
      </plugins>
   </build>
   <dependencies>
      <!-- Depends on the Apache 'solr' web application (see Overlay settings above)-->
      <dependency>
         <groupId>org.apache.solr</groupId>
         <artifactId>solr</artifactId>
         <version>3.3.0</version>
         <type>war</type>
      </dependency>
      <!-- Commons Logging is needed for the LocalHostRestrictionFilter-->
      <dependency>
         <groupId>commons-logging</groupId>
         <artifactId>commons-logging</artifactId>
         <version>1.0.4</version>
      </dependency>
   </dependencies>

</project>
