Skip to content

Commit b13037c

Browse files
committed
Merge branch 'fix-everything'
This fixes version and classifier detection, improves the behavior of appSubdirectory, adds support for custom subdirectory pattern, and fixes a crash bug with the EclipseHelper. It also renames and generalizes the copy-jars mojo to populate-app, a backwards incompatible change. Therefore, we bump the major digit.
2 parents e31fa30 + cca73a7 commit b13037c

File tree

95 files changed

+1013
-2013
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+1013
-2013
lines changed

LICENSE.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
Copyright (c) 2014 - 2018, Board of Regents of the University of
2-
Wisconsin-Madison, Broad Institute of MIT and Harvard, Max Planck
3-
Institute of Molecular Cell Biology and Genetics, and KNIME GmbH.
1+
Copyright (c) 2014 - 2020, SciJava developers.
42
All rights reserved.
53

64
Redistribution and use in source and binary forms, with or without modification,

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ This plugin has 7 goals:
2020
scijava:bump
2121
Bumps dependency and parent versions in SciJava projects.
2222

23-
scijava:copy-jars
23+
scijava:populate-app
2424
Copies .jar artifacts and their dependencies into a SciJava application
2525
directory structure. ImageJ 1.x plugins (identified by containing a
2626
plugins.config file) get copied to the plugins/ subdirectory and all other
2727
.jar files to jars/. However, you can override this decision by setting the
2828
scijava.app.subdirectory property to a specific subdirectory. It expects the
2929
location of the SciJava application directory to be specified in the
3030
scijava.app.directory property (which can be set on the Maven command-line).
31-
If said property is not set, the copy-jars goal is skipped.
31+
If said property is not set, the populate-app goal is skipped.
3232

3333
scijava:eclipse-helper
3434
Runs the annotation processor of the scijava-common artifact even inside
@@ -68,7 +68,7 @@ scijava:verify-no-snapshots
6868
Usage
6969
-----
7070
71-
It is recommended to enable the _set-rootdir_ as well as the _copy-jars_
71+
It is recommended to enable the _set-rootdir_ as well as the _populate-app_
7272
goal by making the [SciJava POM](http://github.com/scijava/pom-scijava)
7373
the parent project:
7474
@@ -101,10 +101,10 @@ Alternatively, you can include the plugin explicitly in the life cycle:
101101
</goals>
102102
</execution>
103103
<execution>
104-
<id>copy-jars</id>
104+
<id>populate-app</id>
105105
<phase>install</phase>
106106
<goals>
107-
<goal>copy-jars</goal>
107+
<goal>populate-app</goal>
108108
</goals>
109109
</execution>
110110
</executions>

pom.xml

Lines changed: 13 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
<parent>
66
<groupId>org.scijava</groupId>
77
<artifactId>pom-scijava</artifactId>
8-
<version>26.0.0</version>
8+
<version>28.0.0</version>
99
<relativePath />
1010
</parent>
1111

1212
<artifactId>scijava-maven-plugin</artifactId>
13-
<version>1.1.2-SNAPSHOT</version>
13+
<version>2.0.0-SNAPSHOT</version>
1414
<packaging>maven-plugin</packaging>
1515

1616
<name>SciJava plugin for Maven</name>
@@ -95,16 +95,19 @@
9595
<package-name>org.scijava.maven</package-name>
9696

9797
<license.licenseName>bsd_2</license.licenseName>
98-
<license.copyrightOwners>Board of Regents of the University of
99-
Wisconsin-Madison, Broad Institute of MIT and Harvard, Max Planck
100-
Institute of Molecular Cell Biology and Genetics, and KNIME GmbH.</license.copyrightOwners>
98+
<license.copyrightOwners>SciJava developers.</license.copyrightOwners>
10199
<license.projectName>A plugin for managing SciJava-based projects.</license.projectName>
102100

103101
<maven.compiler.source>1.8</maven.compiler.source>
104102
<maven.compiler.target>1.6</maven.compiler.target>
105103
<maven.version>3.0</maven.version>
106104
<maven2.version>2.2.1</maven2.version>
107105
<maven-tree.version>2.2</maven-tree.version>
106+
<maven-plugin-annotations.version>3.5</maven-plugin-annotations.version>
107+
<maven-artifact-transfer.version>0.9.1</maven-artifact-transfer.version>
108+
<maven-common-artifact-filters.version>3.0.1</maven-common-artifact-filters.version>
109+
<plexus-interpolation.version>1.24</plexus-interpolation.version>
110+
<plexus-utils.version>3.1.0</plexus-utils.version>
108111
</properties>
109112

110113
<dependencies>
@@ -165,7 +168,7 @@ Institute of Molecular Cell Biology and Genetics, and KNIME GmbH.</license.copyr
165168
<dependency>
166169
<groupId>org.apache.maven.plugin-tools</groupId>
167170
<artifactId>maven-plugin-annotations</artifactId>
168-
<version>3.5</version>
171+
<version>${maven-plugin-annotations.version}</version>
169172
</dependency>
170173
<dependency>
171174
<groupId>junit</groupId>
@@ -192,29 +195,28 @@ Institute of Molecular Cell Biology and Genetics, and KNIME GmbH.</license.copyr
192195
<dependency>
193196
<groupId>org.apache.maven.shared</groupId>
194197
<artifactId>maven-artifact-transfer</artifactId>
195-
<version>0.9.1</version>
198+
<version>${maven-artifact-transfer.version}</version>
196199
</dependency>
197200
<dependency>
198201
<groupId>org.apache.maven.shared</groupId>
199202
<artifactId>maven-common-artifact-filters</artifactId>
200-
<version>3.0.1</version>
203+
<version>${maven-common-artifact-filters.version}</version>
201204
</dependency>
202205

203206
<dependency>
204207
<groupId>org.codehaus.plexus</groupId>
205208
<artifactId>plexus-interpolation</artifactId>
206-
<version>1.24</version>
209+
<version>${plexus-interpolation.version}</version>
207210
</dependency>
208211
<dependency>
209212
<groupId>org.codehaus.plexus</groupId>
210213
<artifactId>plexus-utils</artifactId>
211-
<version>3.1.0</version>
214+
<version>${plexus-utils.version}</version>
212215
</dependency>
213216

214217
<dependency>
215218
<groupId>org.scijava</groupId>
216219
<artifactId>scijava-common</artifactId>
217-
<version>${scijava-common.version}</version>
218220
</dependency>
219221
</dependencies>
220222

@@ -248,18 +250,6 @@ Institute of Molecular Cell Biology and Genetics, and KNIME GmbH.</license.copyr
248250
</lifecycleMappingMetadata>
249251
</configuration>
250252
</plugin>
251-
<plugin>
252-
<groupId>org.apache.maven.plugins</groupId>
253-
<artifactId>maven-enforcer-plugin</artifactId>
254-
<version>1.0</version>
255-
<dependencies>
256-
<dependency>
257-
<groupId>org.codehaus.mojo</groupId>
258-
<artifactId>extra-enforcer-rules</artifactId>
259-
<version>1.0-beta-9</version>
260-
</dependency>
261-
</dependencies>
262-
</plugin>
263253
</plugins>
264254
</pluginManagement>
265255
<plugins>

src/it/copy-to-subdirectory/pom.xml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
#%L
33
A plugin for managing SciJava-based projects.
44
%%
5-
Copyright (C) 2014 - 2018 Board of Regents of the University of
6-
Wisconsin-Madison, Broad Institute of MIT and Harvard, Max Planck
7-
Institute of Molecular Cell Biology and Genetics, and KNIME GmbH.
5+
Copyright (C) 2014 - 2020 SciJava developers.
86
%%
97
Redistribution and use in source and binary forms, with or without
108
modification, are permitted provided that the following conditions are met:
@@ -36,7 +34,7 @@
3634
<artifactId>Example_PlugIn</artifactId>
3735
<version>1.0.0-SNAPSHOT</version>
3836
<packaging>jar</packaging>
39-
<name>An example ImageJ 1.x plugin to test scijava-maven-plugin's CopyJarsMojo</name>
37+
<name>An example ImageJ 1.x plugin to test scijava-maven-plugin's PopulateAppMojo</name>
4038

4139
<dependencies>
4240
<dependency>
@@ -60,10 +58,10 @@
6058
<version>${scijava-maven.version}</version>
6159
<executions>
6260
<execution>
63-
<id>copy-jars</id>
61+
<id>populate-app</id>
6462
<phase>install</phase>
6563
<goals>
66-
<goal>copy-jars</goal>
64+
<goal>populate-app</goal>
6765
</goals>
6866
</execution>
6967
<execution>

src/it/copy-to-subdirectory/setup.bsh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
* #%L
33
* A plugin for managing SciJava-based projects.
44
* %%
5-
* Copyright (C) 2014 - 2018 Board of Regents of the University of
6-
* Wisconsin-Madison, Broad Institute of MIT and Harvard, Max Planck
7-
* Institute of Molecular Cell Biology and Genetics, and KNIME GmbH.
5+
* Copyright (C) 2014 - 2020 SciJava developers.
86
* %%
97
* Redistribution and use in source and binary forms, with or without
108
* modification, are permitted provided that the following conditions are met:

src/it/copy-to-subdirectory/src/main/resources/plugins.config

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
# #%L
33
# A plugin for managing SciJava-based projects.
44
# %%
5-
# Copyright (C) 2014 - 2018 Board of Regents of the University of
6-
# Wisconsin-Madison, Broad Institute of MIT and Harvard, Max Planck
7-
# Institute of Molecular Cell Biology and Genetics, and KNIME GmbH.
5+
# Copyright (C) 2014 - 2020 SciJava developers.
86
# %%
97
# Redistribution and use in source and binary forms, with or without
108
# modification, are permitted provided that the following conditions are met:

src/it/copy-to-subdirectory/verify.bsh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
* #%L
33
* A plugin for managing SciJava-based projects.
44
* %%
5-
* Copyright (C) 2014 - 2018 Board of Regents of the University of
6-
* Wisconsin-Madison, Broad Institute of MIT and Harvard, Max Planck
7-
* Institute of Molecular Cell Biology and Genetics, and KNIME GmbH.
5+
* Copyright (C) 2014 - 2020 SciJava developers.
86
* %%
97
* Redistribution and use in source and binary forms, with or without
108
* modification, are permitted provided that the following conditions are met:

src/it/delete-other-versions-configuration/pom.xml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
#%L
33
A plugin for managing SciJava-based projects.
44
%%
5-
Copyright (C) 2014 - 2018 Board of Regents of the University of
6-
Wisconsin-Madison, Broad Institute of MIT and Harvard, Max Planck
7-
Institute of Molecular Cell Biology and Genetics, and KNIME GmbH.
5+
Copyright (C) 2014 - 2020 SciJava developers.
86
%%
97
Redistribution and use in source and binary forms, with or without
108
modification, are permitted provided that the following conditions are met:
@@ -36,7 +34,7 @@
3634
<artifactId>Example_PlugIn</artifactId>
3735
<version>1.0.0-SNAPSHOT</version>
3836
<packaging>jar</packaging>
39-
<name>An example ImageJ 1.x plugin to test scijava-maven-plugin's CopyJarsMojo</name>
37+
<name>An example ImageJ 1.x plugin to test scijava-maven-plugin's PopulateAppMojo</name>
4038

4139
<properties>
4240
<scijava.app.directory>${project.basedir}/target/ImageJ.app/</scijava.app.directory>
@@ -51,10 +49,10 @@
5149
<version>${scijava-maven.version}</version>
5250
<executions>
5351
<execution>
54-
<id>copy-jars</id>
52+
<id>populate-app</id>
5553
<phase>install</phase>
5654
<goals>
57-
<goal>copy-jars</goal>
55+
<goal>populate-app</goal>
5856
</goals>
5957
<configuration>
6058
<deleteOtherVersions>false</deleteOtherVersions>

src/it/delete-other-versions-configuration/setup.bsh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
* #%L
33
* A plugin for managing SciJava-based projects.
44
* %%
5-
* Copyright (C) 2014 - 2018 Board of Regents of the University of
6-
* Wisconsin-Madison, Broad Institute of MIT and Harvard, Max Planck
7-
* Institute of Molecular Cell Biology and Genetics, and KNIME GmbH.
5+
* Copyright (C) 2014 - 2020 SciJava developers.
86
* %%
97
* Redistribution and use in source and binary forms, with or without
108
* modification, are permitted provided that the following conditions are met:

src/it/delete-other-versions-configuration/src/main/resources/plugins.config

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
# #%L
33
# A plugin for managing SciJava-based projects.
44
# %%
5-
# Copyright (C) 2014 - 2018 Board of Regents of the University of
6-
# Wisconsin-Madison, Broad Institute of MIT and Harvard, Max Planck
7-
# Institute of Molecular Cell Biology and Genetics, and KNIME GmbH.
5+
# Copyright (C) 2014 - 2020 SciJava developers.
86
# %%
97
# Redistribution and use in source and binary forms, with or without
108
# modification, are permitted provided that the following conditions are met:

0 commit comments

Comments
 (0)