dspace-services
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>org.dspace</groupId> <artifactId>dspace-services</artifactId> <version>9.0</version> </dependency>
<?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"> <modelVersion>4.0.0</modelVersion> <groupId>org.dspace</groupId> <artifactId>dspace-services</artifactId> <packaging>jar</packaging> <name>DSpace Services Framework :: API and Implementation</name> <parent> <groupId>org.dspace</groupId> <artifactId>dspace-parent</artifactId> <version>9.0</version> </parent> <properties> <!-- This is the path to the root [dspace-src] directory. --> <root.basedir>${basedir}/..</root.basedir> </properties> <profiles> <!-- Setup the Unit Test Environment (when -DskipUnitTests=false) --> <profile> <id>unit-test-environment</id> <activation> <activeByDefault>false</activeByDefault> <property> <name>skipUnitTests</name> <value>false</value> </property> </activation> <build> <plugins> <!-- This plugin allows us to run a Groovy script in our Maven POM (see: https://groovy.github.io/gmaven/groovy-maven-plugin/execute.html ) We are generating a OS-agnostic version (agnostic.build.dir) of the ${project.build.directory} property (full path of target dir). This is needed by the Surefire plugin (see below) to initialize the Unit Test environment's dspace.dir setting. Otherwise, the Unit Test Framework will not work on Windows OS. This Groovy code was mostly borrowed from: http://stackoverflow.com/questions/3872355/how-to-convert-file-separator-in-maven --> <plugin> <groupId>org.codehaus.gmaven</groupId> <artifactId>groovy-maven-plugin</artifactId> <executions> <execution> <id>setproperty</id> <phase>initialize</phase> <goals> <goal>execute</goal> </goals> <configuration> <source> project.properties['agnostic.build.dir'] = project.build.directory.replace(File.separator, '/'); log.info("Initializing Maven property 'agnostic.build.dir' to: {}", project.properties['agnostic.build.dir']); </source> </configuration> </execution> </executions> </plugin> <!-- Run Unit Testing! This plugin just kicks off the tests. --> <plugin> <artifactId>maven-surefire-plugin</artifactId> <configuration> <systemPropertyVariables> <!-- Specify the dspace.dir to use for test environment --> <!-- ${agnostic.build.dir} is set dynamically by groovy-maven-plugin above --> <!-- For "dspace-services" we don't need a full test environment, we just need a valid "config-definition.xml" which exists in target/test-classes/ --> <dspace.dir>${agnostic.build.dir}/test-classes</dspace.dir> </systemPropertyVariables> </configuration> </plugin> </plugins> </build> </profile> </profiles> <dependencies> <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-api</artifactId> <version>${log4j.version}</version> </dependency> <!-- spring service manager --> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context-support</artifactId> <version>${spring.version}</version> <scope>compile</scope> <exclusions> <!-- Spring JCL is unnecessary and conflicts with commons-logging when both are on classpath --> <exclusion> <groupId>org.springframework</groupId> <artifactId>spring-jcl</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-lang3</artifactId> </dependency> <!-- for filters --> <dependency> <groupId>jakarta.servlet</groupId> <artifactId>jakarta.servlet-api</artifactId> <scope>provided</scope> </dependency> <dependency> <groupId>jakarta.mail</groupId> <artifactId>jakarta.mail-api</artifactId> <scope>provided</scope> </dependency> <dependency> <groupId>org.eclipse.angus</groupId> <artifactId>jakarta.mail</artifactId> </dependency> <dependency> <groupId>org.mockito</groupId> <artifactId>mockito-inline</artifactId> <scope>test</scope> </dependency> <!-- SPECIAL CASE - need JUNIT at build time and testing time --> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <scope>provided</scope> </dependency> <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-configuration2</artifactId> </dependency> <!-- Required by Commons Configuration --> <dependency> <groupId>commons-beanutils</groupId> <artifactId>commons-beanutils</artifactId> </dependency> <dependency> <groupId>commons-io</groupId> <artifactId>commons-io</artifactId> </dependency> <dependency> <groupId>jakarta.annotation</groupId> <artifactId>jakarta.annotation-api</artifactId> </dependency> </dependencies> </project>