diff --git a/pom.xml b/pom.xml index 2c5cdf797e9a2b6d4c68f9f82e6e01200b2c09b2..1bf0fbada9cc60ce014a3b1fcb0487fdf1a4041b 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>