diff --git a/PLUGIN-INF/metadata_SLUBRetroMonographieTIFFFormatValidationPlugin.xml b/PLUGIN-INF/metadata_SLUBRetroMonographieTIFFFormatValidationPlugin.xml index fb5d3dcf612c832b4b1177dd32108d6a2e548ae0..d3cecfaa4c4af1e19cd3fa01948219ca1d5c1c4b 100644 --- a/PLUGIN-INF/metadata_SLUBRetroMonographieTIFFFormatValidationPlugin.xml +++ b/PLUGIN-INF/metadata_SLUBRetroMonographieTIFFFormatValidationPlugin.xml @@ -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> diff --git a/pom.xml b/pom.xml index 92ead3afb1c804081c127799da224664a0de7d8e..267a32d43f2d9f0eb7bc59d7c909ba63cafd34f7 100644 --- a/pom.xml +++ b/pom.xml @@ -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 -->