diff Samples/Dcm4Che/pom.xml @ 29:118adbad648f

sharing common properties between samples
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 12 Jun 2024 14:44:37 +0200
parents 1c407ba1d311
children
line wrap: on
line diff
--- a/Samples/Dcm4Che/pom.xml	Wed Jun 12 13:58:29 2024 +0200
+++ b/Samples/Dcm4Che/pom.xml	Wed Jun 12 14:44:37 2024 +0200
@@ -60,12 +60,32 @@
         </executions>
       </plugin>
 
+      <!-- Sharing properties between the samples -->
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>properties-maven-plugin</artifactId>
+        <version>1.0.0</version>
+        <executions>
+          <execution>
+            <phase>initialize</phase>
+            <goals>
+              <goal>read-project-properties</goal>
+            </goals>
+            <configuration>
+              <files>
+                <file>${project.basedir}/../global.properties</file>
+              </files>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+
     </plugins>
   </build>
 
   <groupId>OrthancJava</groupId>
-  <artifactId>Sample</artifactId>
-  <version>0.0-SNAPSHOT</version>
+  <artifactId>OrthancDcm4Che</artifactId>
+  <version>${orthanc_java.version}</version>
 
   <repositories>
     <repository>