From f634b0f0f58a9ac7d5b47dbe55009a10325d2738 Mon Sep 17 00:00:00 2001
From: Amandine Tournay <amandine.tournay@pasteur.fr>
Date: Sun, 14 Aug 2022 02:53:17 +0200
Subject: [PATCH] Upgraded POM to latest version

---
 pom.xml | 41 +++++++++++++----------------------------
 1 file changed, 13 insertions(+), 28 deletions(-)

diff --git a/pom.xml b/pom.xml
index 5c1b46c..e50774f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,10 +4,10 @@
     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
     <parent>
+		<artifactId>pom-icy</artifactId>
         <groupId>org.bioimageanalysis.icy</groupId>
-        <artifactId>parent-pom-plugin</artifactId>
-        <version>1.0.4</version>
-    </parent>
+        <version>2.0.0</version>
+	</parent>
 
     <artifactId>apache-commons-csv</artifactId>
     <version>1.9.0</version>
@@ -52,33 +52,17 @@
 
     <!-- Project properties -->
     <properties>
-
+		<artifact-to-include>commons-csv</artifact-to-include>
     </properties>
 
-    <!-- Project build configuration -->
-    <build>
-        <plugins>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-dependency-plugin</artifactId>
-                <executions>
-                    <execution>
-                        <id>${project.artifactId}-fetch</id>
-                        <phase>generate-sources</phase>
-                        <goals>
-                            <goal>unpack-dependencies</goal>
-                        </goals>
-                        <configuration>
-                            <includeArtifactIds>commons-csv</includeArtifactIds>
-                            <outputDirectory>${project.build.outputDirectory}</outputDirectory>
-                            <stripVersion>true</stripVersion>
-                            <excludeTransitive>true</excludeTransitive>
-                        </configuration>
-                    </execution>
-                </executions>
-            </plugin>
-        </plugins>
-    </build>
+	<profiles>
+        <profile>
+            <id>icy-plugin-extract-library</id>
+            <activation>
+                <activeByDefault>true</activeByDefault>
+            </activation>
+        </profile>
+    </profiles>
 
     <!-- List of project's dependencies -->
     <dependencies>
@@ -86,6 +70,7 @@
         <dependency>
             <groupId>org.bioimageanalysis.icy</groupId>
             <artifactId>icy-kernel</artifactId>
+			<version>${icy-kernel.version}</version>
         </dependency>
 
         <dependency>
-- 
GitLab