<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.dependencies.solr</groupId>
      <artifactId>dspace-solr-parent</artifactId>
      <version>1.4.0.1</version>
   </parent>

   <groupId>org.dspace.dependencies.solr</groupId>
   <artifactId>dspace-solr-server</artifactId>
   <name>Apache Solr Server Libraries</name>
   <version>1.4.0.1</version>
   <description>Apache Solr Server</description>

   <scm>
      <connection>
      scm:svn:https://scm.dspace.org/svn/repo/modules/dspace-solr/server/tags/dspace-solr-parent-1.4.0.1
    </connection>
      <developerConnection>
      scm:svn:https://scm.dspace.org/svn/repo/modules/dspace-solr/server/tags/dspace-solr-parent-1.4.0.1
    </developerConnection>
     <url>http://svn.apache.org/viewvc/maven/pom/tags/dspace-solr-parent-1.4.0.1/dspace-solr-server</url>
  </scm>

   <build>
      <plugins>
         <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-war-plugin</artifactId>
            <configuration>
               <archiveClasses>true</archiveClasses>
               <attachClasses>true</attachClasses>
               <classesClassifier>classes</classesClassifier>
            </configuration>
         </plugin>
         
                  <plugin>
            <artifactId>maven-antrun-plugin</artifactId>
            <executions>
               <execution>
                  <phase>generate-sources</phase>
                  <configuration>
                     <tasks>
                     
                        <delete dir="{project.build.directory}/generated-sources/main/java" />
                        <copy todir="${project.build.directory}/generated-sources/main/java">
                           <fileset dir="src/main/external-java" />
                        </copy>
                     </tasks>
                     <sourceRoot>
                        ${project.build.directory}/generated-sources/main/java
              </sourceRoot>
                     <testSourceRoot>
                        ${project.build.directory}/generated-sources/test/java
              </testSourceRoot>
                  </configuration>
                  <goals>
                     <goal>run</goal>
                  </goals>
               </execution>
            </executions>
         </plugin>

         <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-patch-plugin</artifactId>
            <configuration>
               <patchFile>src/main/patches/webapp.patch</patchFile>
               <targetDirectory>${project.build.directory}/generated-sources/main/java</targetDirectory>
            </configuration>
            <executions>
               <execution>
                  <phase>generate-sources</phase>
                  <goals>
                     <goal>apply</goal>
                  </goals>
               </execution>
            </executions>

         </plugin>
         
      </plugins>
   </build>
   
   <dependencies>
      <dependency>
         <groupId>org.dspace.dependencies.solr</groupId>
         <artifactId>dspace-solr-solrj</artifactId>
         <version>1.4.0.1</version>
      </dependency>
      <dependency>
         <groupId>org.dspace.dependencies.solr</groupId>
         <artifactId>dspace-solr-core</artifactId>
         <version>1.4.0.1</version>
      </dependency>
      <dependency>
         <groupId>org.mortbay.jetty</groupId>
         <artifactId>jetty</artifactId>
         <version>6.1.21</version>
         <scope>provided</scope>
      </dependency>
   </dependencies>

</project>