Skip to content
Snippets Groups Projects
Commit cf933d84 authored by Andreas Romeyke's avatar Andreas Romeyke
Browse files

- fixed to use project properties to avoid multiple adaption-points if version changed

- set properties on top, added common project specific properties, such rosetta SDK version
- added replacer plugin to set version in PLUGIN-INF/..
- prepared to replace by version using pom.xml
parent f8af3dd2
No related branches found
No related tags found
No related merge requests found
Pipeline #10996 failed
......@@ -61,7 +61,7 @@
</pl:initParameters>
<pl:description>SLUB TIFF Validation Plugin, using checkit_tiff to validate
TIFF files from retro-digitized monographs</pl:description>
<pl:version>1.3</pl:version>
<pl:version>@version@</pl:version>
<pl:materialType>DIGITAL</pl:materialType>
<pl:module>Preservation</pl:module>
<pl:generalType>TASK</pl:generalType>
......
......@@ -4,6 +4,12 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.slub.rosetta.dps.repository.plugin</groupId>
<artifactId>SLUBRetroMonographieTIFFFormatValidationPlugin</artifactId>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<rosetta-sdk-version>8.3.0</rosetta-sdk-version>
<rosetta-sdk-base-jar>${ROSETTASDK}/lib/dps-sdk-${rosetta-sdk-version}.jar</rosetta-sdk-base-jar>
</properties>
<version>2.30</version>
<description>PDF plugin to evaluate baseline TIFF files using checkit_tiff,
used for ExlibrisGroup`s Rosetta archival information system</description>
......@@ -17,9 +23,43 @@
<testSourceDirectory>src/test/java/</testSourceDirectory>
<plugins>
<plugin>
<groupId>com.google.code.maven-replacer-plugin</groupId>
<artifactId>replacer</artifactId>
<version>1.5.3</version>
<executions>
<execution>
<phase>process-resources</phase>
<goals>
<goal>replace</goal>
</goals>
</execution>
</executions>
<configuration>
<file>${project.build.outputDirectory}/PLUGIN-INF/metadata_SLUBPublikationenPflichtexemplarePDFFormatValidationPlugin.xml</file>
<replacements>
<replacement>
<xpath>/*[local-name() = 'metadata-config']/*[local-name() = 'version']/text()</xpath>
<token>@version@</token>
<value>${project.version}</value>
</replacement>
</replacements>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>3.3.1</version>
<executions>
<execution>
<phase>generate-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
</execution>
</executions>
<configuration>
<outputDirectory>${project.build.outputDirectory}/PLUGIN-INF/</outputDirectory>
<resources>
......@@ -83,10 +123,7 @@
</plugins>
</build>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
</properties>
<dependencies>
<!--
......@@ -118,16 +155,16 @@
<dependency>
<groupId>com.exlibris</groupId>
<artifactId>core</artifactId>
<version>8.2.0</version>
<version>${rosetta-sdk-version}</version>
<scope>system</scope>
<systemPath>${ROSETTASDK}/lib/dps-sdk-8.2.0.jar</systemPath>
<systemPath>${rosetta-sdk-base-jar}</systemPath>
</dependency>
<dependency>
<groupId>com.exlibris</groupId>
<artifactId>dps</artifactId>
<version>8.2.0</version>
<version>${rosetta-sdk-version}</version>
<scope>system</scope>
<systemPath>${ROSETTASDK}/lib/dps-sdk-8.2.0.jar</systemPath>
<systemPath>${rosetta-sdk-base-jar}</systemPath>
</dependency>
<!-- test -->
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment