mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-23 09:53:09 +00:00
163 lines
6.4 KiB
XML
163 lines
6.4 KiB
XML
<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.dspace</groupId>
|
|
<artifactId>dspace</artifactId>
|
|
<name>DSpace Assembly and Configuration</name>
|
|
<packaging>pom</packaging>
|
|
<description>
|
|
The DSpace Project provides all the functionality required to
|
|
build, install and upgrade and dspace instance.
|
|
</description>
|
|
<!--
|
|
A Parent POM that Maven inherits DSpace Default
|
|
POM attributes from.
|
|
-->
|
|
<parent>
|
|
<groupId>org.dspace</groupId>
|
|
<artifactId>dspace-parent</artifactId>
|
|
<version>3.0-rc4-SNAPSHOT</version>
|
|
<relativePath>..</relativePath>
|
|
</parent>
|
|
|
|
<properties>
|
|
<!-- This is the path to the root [dspace-src] directory. -->
|
|
<root.basedir>${basedir}/..</root.basedir>
|
|
</properties>
|
|
|
|
<build>
|
|
<filters>
|
|
<!-- Filter using the properties file defined by dspace-parent POM -->
|
|
<filter>${filters.file}</filter>
|
|
</filters>
|
|
<resources>
|
|
<!-- Enumerate filtered files explicitly to avoid issues with other config tech. -->
|
|
<resource>
|
|
<directory>${basedir}</directory>
|
|
<filtering>true</filtering>
|
|
<includes>
|
|
<include>config/default.context.xml</include>
|
|
<include>config/dspace.cfg</include>
|
|
<include>config/log4j-handle-plugin.properties</include>
|
|
<include>config/log4j.properties</include>
|
|
<include>config/modules/curate.cfg</include>
|
|
<include>config/modules/oai.cfg</include>
|
|
<include>config/modules/solr-statistics.cfg</include>
|
|
</includes>
|
|
</resource>
|
|
<!-- Declare a mutually exclusive resource set for non-filtered files. -->
|
|
<resource>
|
|
<directory>${basedir}</directory>
|
|
<filtering>false</filtering>
|
|
<excludes>
|
|
<exclude>config/default.context.xml</exclude>
|
|
<exclude>config/dspace.cfg</exclude>
|
|
<exclude>config/log4j-handle-plugin.properties</exclude>
|
|
<exclude>config/log4j.properties</exclude>
|
|
<exclude>config/modules/curate.cfg</exclude>
|
|
<exclude>config/modules/oai.cfg</exclude>
|
|
<exclude>config/modules/solr-statistics.cfg</exclude>
|
|
</excludes>
|
|
</resource>
|
|
</resources>
|
|
|
|
<plugins>
|
|
<!-- Default project assembly. Calls 'assembly.xml', which
|
|
generates the DSpace build directory. -->
|
|
<plugin>
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
<configuration>
|
|
<!-- Don't "attach" the assembly results to this project. As
|
|
this assembly builds a directory, setting this to "true"
|
|
(default value) will just result in a WARNING message.-->
|
|
<attach>false</attach>
|
|
<descriptors>
|
|
<descriptor>src/main/assembly/assembly.xml</descriptor>
|
|
</descriptors>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>single</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
<profiles>
|
|
|
|
<!-- Default Profile. This builds all Overlay modules for DSpace -->
|
|
<profile>
|
|
<id>default</id>
|
|
<activation>
|
|
<activeByDefault>true</activeByDefault>
|
|
</activation>
|
|
<!--
|
|
Builds Overlay Modules for DSpace
|
|
-->
|
|
<modules>
|
|
<module>modules</module>
|
|
</modules>
|
|
</profile>
|
|
|
|
|
|
<!--
|
|
Run this profile (e.g. 'mvn package -Pdistributions') to create
|
|
zip / tarball distributions to upload to SourceForge or similar.
|
|
When this profile is run, DSpace is NOT compiled as normal.
|
|
Instead, a zip/tarball is generated from the parent [dspace-src] directory.
|
|
-->
|
|
<profile>
|
|
<id>distributions</id>
|
|
<activation>
|
|
<activeByDefault>false</activeByDefault>
|
|
</activation>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
<inherited>false</inherited>
|
|
<executions>
|
|
<execution>
|
|
<inherited>false</inherited>
|
|
<configuration>
|
|
<descriptors>
|
|
<descriptor>src/main/assembly/release.xml</descriptor>
|
|
<descriptor>src/main/assembly/src-release.xml</descriptor>
|
|
</descriptors>
|
|
<tarLongFileMode>gnu</tarLongFileMode>
|
|
<finalName>dspace-${project.version}</finalName>
|
|
</configuration>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>single</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
|
|
</profiles>
|
|
|
|
<dependencies>
|
|
<!-- This dependency ensures DSpace OAI JAR is added to [dspace]/lib/,
|
|
so that the 'dspace oai' launcher.xml command works. -->
|
|
<dependency>
|
|
<groupId>org.dspace</groupId>
|
|
<artifactId>dspace-oai</artifactId>
|
|
<type>jar</type>
|
|
<classifier>classes</classifier>
|
|
</dependency>
|
|
<!-- The Servlet API is also needed by the 'dspace oai' launcher.xml
|
|
command. -->
|
|
<dependency>
|
|
<groupId>javax.servlet</groupId>
|
|
<artifactId>servlet-api</artifactId>
|
|
</dependency>
|
|
</dependencies>
|
|
</project>
|