Skip to content

Commit b244052

Browse files
committed
Rename copy-jars mojo and related classes
The mojo will become more general than just copying JAR files. It will enable installation of any configured resources, too, so that an entire SciJava application can be populated from scratch.
1 parent 5d64b4f commit b244052

File tree

34 files changed

+66
-66
lines changed

34 files changed

+66
-66
lines changed

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>

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
<artifactId>Example_PlugIn</artifactId>
3737
<version>1.0.0-SNAPSHOT</version>
3838
<packaging>jar</packaging>
39-
<name>An example ImageJ 1.x plugin to test scijava-maven-plugin's CopyJarsMojo</name>
39+
<name>An example ImageJ 1.x plugin to test scijava-maven-plugin's PopulateAppMojo</name>
4040

4141
<dependencies>
4242
<dependency>
@@ -60,10 +60,10 @@
6060
<version>${scijava-maven.version}</version>
6161
<executions>
6262
<execution>
63-
<id>copy-jars</id>
63+
<id>populate-app</id>
6464
<phase>install</phase>
6565
<goals>
66-
<goal>copy-jars</goal>
66+
<goal>populate-app</goal>
6767
</goals>
6868
</execution>
6969
<execution>

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
<artifactId>Example_PlugIn</artifactId>
3737
<version>1.0.0-SNAPSHOT</version>
3838
<packaging>jar</packaging>
39-
<name>An example ImageJ 1.x plugin to test scijava-maven-plugin's CopyJarsMojo</name>
39+
<name>An example ImageJ 1.x plugin to test scijava-maven-plugin's PopulateAppMojo</name>
4040

4141
<properties>
4242
<scijava.app.directory>${project.basedir}/target/ImageJ.app/</scijava.app.directory>
@@ -51,10 +51,10 @@
5151
<version>${scijava-maven.version}</version>
5252
<executions>
5353
<execution>
54-
<id>copy-jars</id>
54+
<id>populate-app</id>
5555
<phase>install</phase>
5656
<goals>
57-
<goal>copy-jars</goal>
57+
<goal>populate-app</goal>
5858
</goals>
5959
<configuration>
6060
<deleteOtherVersions>false</deleteOtherVersions>

src/it/delete-other-versions-in-subdirectory/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
<artifactId>Example_PlugIn</artifactId>
3737
<version>1.0.0-SNAPSHOT</version>
3838
<packaging>jar</packaging>
39-
<name>An example ImageJ 1.x plugin to test scijava-maven-plugin's CopyJarsMojo</name>
39+
<name>An example ImageJ 1.x plugin to test scijava-maven-plugin's PopulateAppMojo</name>
4040

4141
<properties>
4242
<scijava.app.directory>${project.basedir}/target/ImageJ.app/</scijava.app.directory>
@@ -55,10 +55,10 @@
5555
</configuration>
5656
<executions>
5757
<execution>
58-
<id>copy-jars</id>
58+
<id>populate-app</id>
5959
<phase>install</phase>
6060
<goals>
61-
<goal>copy-jars</goal>
61+
<goal>populate-app</goal>
6262
</goals>
6363
</execution>
6464
</executions>

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
<artifactId>Example_PlugIn</artifactId>
3737
<version>1.0.0-SNAPSHOT</version>
3838
<packaging>jar</packaging>
39-
<name>An example ImageJ 1.x plugin to test scijava-maven-plugin's CopyJarsMojo</name>
39+
<name>An example ImageJ 1.x plugin to test scijava-maven-plugin's PopulateAppMojo</name>
4040

4141
<properties>
4242
<scijava.app.directory>${project.basedir}/target/ImageJ.app/</scijava.app.directory>
@@ -52,10 +52,10 @@
5252
<version>${scijava-maven.version}</version>
5353
<executions>
5454
<execution>
55-
<id>copy-jars</id>
55+
<id>populate-app</id>
5656
<phase>install</phase>
5757
<goals>
58-
<goal>copy-jars</goal>
58+
<goal>populate-app</goal>
5959
</goals>
6060
</execution>
6161
<execution>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
*/
3131
source(new File(basedir, "../../../src/it/lib.bsh").getPath());
3232

33-
// copy-jars
33+
// populate-app
3434
if (!plugins.exists()) plugins.mkdirs();
3535
touchFile(new File(plugins, "Example_PlugIn-1.1.0.jar"));
3636

src/it/delete-other-versions-policy/verify.bsh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
*/
3131
source(new File(basedir, "../../../src/it/lib.bsh").getPath());
3232

33-
// copy-jars
33+
// populate-app
3434
assertTrue("Should exist: " + plugin, plugin.exists());
3535
newer = new File(plugins, "Example_PlugIn-1.1.0.jar");
3636
assertTrue("Should not exist: " + newer, !newer.exists());

src/it/delete-other-versions-property-false/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@
5252
<version>${scijava-maven.version}</version>
5353
<executions>
5454
<execution>
55-
<id>copy-jars</id>
55+
<id>populate-app</id>
5656
<phase>install</phase>
5757
<goals>
58-
<goal>copy-jars</goal>
58+
<goal>populate-app</goal>
5959
</goals>
6060
</execution>
6161
</executions>

src/it/delete-other-versions-property-true/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@
5252
<version>${scijava-maven.version}</version>
5353
<executions>
5454
<execution>
55-
<id>copy-jars</id>
55+
<id>populate-app</id>
5656
<phase>install</phase>
5757
<goals>
58-
<goal>copy-jars</goal>
58+
<goal>populate-app</goal>
5959
</goals>
6060
</execution>
6161
</executions>

src/it/do-not-delete-natives/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@
5454
</configuration>
5555
<executions>
5656
<execution>
57-
<id>copy-jars</id>
57+
<id>populate-app</id>
5858
<phase>install</phase>
5959
<goals>
60-
<goal>copy-jars</goal>
60+
<goal>populate-app</goal>
6161
</goals>
6262
</execution>
6363
</executions>

0 commit comments

Comments
 (0)