From 79e2a8a88b0a866680bc11588846b86106e048a8 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 | 65 +++++++++++++++++++++++++++++++++++---------------------- 1 file changed, 40 insertions(+), 25 deletions(-) diff --git a/pom.xml b/pom.xml index 2c5cdf7..1bf0fba 100644 --- a/pom.xml +++ b/pom.xml @@ -5,10 +5,10 @@ <modelVersion>4.0.0</modelVersion> <parent> + <artifactId>pom-icy</artifactId> <groupId>org.bioimageanalysis.icy</groupId> - <artifactId>parent-pom-plugin</artifactId> - <version>1.0.3</version> - </parent> + <version>2.0.0</version> + </parent> <artifactId>autocomplete</artifactId> <version>2.5.0</version> @@ -19,34 +19,49 @@ <description> Plugin Library used to provide autocompletion to JTextComponents, such as JTextArea or JTextField. </description> + + <properties> + <artifact-to-include>autocomplete</artifact-to-include> + </properties> - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-dependency-plugin</artifactId> - <executions> - <execution> - <id>${project.artifactId}-fetch</id> - <goals> - <goal>unpack-dependencies</goal> - </goals> - <configuration> - <includeArtifactIds>autocomplete</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> + + <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>${artifact-to-include}</includeArtifactIds> + <outputDirectory>${project.build.outputDirectory}</outputDirectory> + <stripVersion>true</stripVersion> + <excludeTransitive>true</excludeTransitive> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> <dependencies> <dependency> <groupId>org.bioimageanalysis.icy</groupId> <artifactId>icy-kernel</artifactId> + <version>${icy-kernel.version}</version> </dependency> <dependency> -- GitLab