Skip to content

Commit e2d36ce

Browse files
Merge pull request #222 from srstsavage/maven-download-unpack-when-changed
Upgrade to maven-download-plugin 1.11.1, use unpackWhenChanged
2 parents 9f7ecf4 + 46c6e1b commit e2d36ce

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

PROGRAMMER_GUIDE.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ ERDDAP™ uses Maven to load code dependencies as well as some static reference
1919

2020
- [erddapContent.zip](https://github.com/ERDDAP/erddapContent/releases/download/content1.0.0/erddapContent.zip) (version 1.0.0, 20333 bytes, MD5=2B8D2A5AE5ED73E3A42B529C168C60B5, dated 2024-10-14) and unzip it into _tomcat_, creating _tomcat_/content/erddap .
2121

22-
NOTE: Maven caches downloads but will unzip the downloaded archives on each execution, which takes time. To skip downloading
23-
and unzipping archives, you may specify the `skipResourceDownload` property to Maven (e.g. `mvn -DskipResourceDownload package`).
22+
NOTE: By default Maven will cache static reference and test data archive downloads and only extract them when a new version is downloaded. To skip downloading entirely, you may set the `skipResourceDownload` and/or `skipTestResourceDownload` properties to Maven (e.g. `mvn -DskipResourceDownload package`). To force extraction, set `-Ddownload.unpack`.
2423

2524
- ERDDAP™ and its subcomponents have very liberal, open-source [licenses](https://erddap.github.io/setup.html#license), so you can use and modify the source code for any purpose, for-profit or not-for-profit. Note that ERDDAP™ and many subcomponents have licenses that require that you acknowledge the source of the code that you are using. See [Credits](https://erddap.github.io/setup.html#credits). Whether required or not, it is just good form to acknowledge all of these contributors.
2625

pom.xml

+8-8
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@
259259
<plugin>
260260
<groupId>com.googlecode.maven-download-plugin</groupId>
261261
<artifactId>download-maven-plugin</artifactId>
262-
<version>1.11.0</version>
262+
<version>1.11.1</version>
263263
<executions>
264264
<execution>
265265
<id>download-content</id>
@@ -269,7 +269,7 @@
269269
</goals>
270270
<configuration>
271271
<url>https://github.com/ERDDAP/erddapContent/releases/download/${erddapcontent.download.version}/erddapContent.zip</url>
272-
<unpack>true</unpack>
272+
<unpackWhenChanged>true</unpackWhenChanged>
273273
<outputDirectory>${project.basedir}</outputDirectory>
274274
<skip>${skipResourceDownload}</skip>
275275
</configuration>
@@ -282,7 +282,7 @@
282282
</goals>
283283
<configuration>
284284
<url>https://github.com/ERDDAP/ERDDAPRefFiles/releases/download/${erddapreffiles.download.version}/etopo1_ice_g_i2.zip</url>
285-
<unpack>true</unpack>
285+
<unpackWhenChanged>true</unpackWhenChanged>
286286
<outputDirectory>${project.basedir}/WEB-INF/ref/</outputDirectory>
287287
<skip>${skipResourceDownload}</skip>
288288
</configuration>
@@ -295,7 +295,7 @@
295295
</goals>
296296
<configuration>
297297
<url>https://github.com/ERDDAP/ERDDAPRefFiles/releases/download/${erddapreffiles.download.version}/ref_files.zip</url>
298-
<unpack>true</unpack>
298+
<unpackWhenChanged>true</unpackWhenChanged>
299299
<outputDirectory>${project.basedir}/WEB-INF/ref/</outputDirectory>
300300
<skip>${skipResourceDownload}</skip>
301301
</configuration>
@@ -309,7 +309,7 @@
309309
</goals>
310310
<configuration>
311311
<url>https://github.com/ERDDAP/erddapTest/releases/download/${test.resources.version}/data.zip</url>
312-
<unpack>true</unpack>
312+
<unpackWhenChanged>true</unpackWhenChanged>
313313
<outputDirectory>${project.basedir}/test-data</outputDirectory>
314314
<skip>${skipTestResourceDownload}</skip>
315315
</configuration>
@@ -322,7 +322,7 @@
322322
</goals>
323323
<configuration>
324324
<url>https://github.com/ERDDAP/erddapTest/releases/download/${test.resources.version}/largeFiles.zip</url>
325-
<unpack>true</unpack>
325+
<unpackWhenChanged>true</unpackWhenChanged>
326326
<outputDirectory>${project.basedir}/test-data</outputDirectory>
327327
<skip>${skipTestResourceDownload}</skip>
328328
</configuration>
@@ -335,7 +335,7 @@
335335
</goals>
336336
<configuration>
337337
<url>https://github.com/ERDDAP/erddapTest/releases/download/${test.resources.version}/largePoints.zip</url>
338-
<unpack>true</unpack>
338+
<unpackWhenChanged>true</unpackWhenChanged>
339339
<outputDirectory>${project.basedir}/test-data</outputDirectory>
340340
<skip>${skipTestResourceDownload}</skip>
341341
</configuration>
@@ -348,7 +348,7 @@
348348
</goals>
349349
<configuration>
350350
<url>https://github.com/ERDDAP/erddapTest/releases/download/${test.resources.version}/largeSatellite.zip</url>
351-
<unpack>true</unpack>
351+
<unpackWhenChanged>true</unpackWhenChanged>
352352
<outputDirectory>${project.basedir}/test-data</outputDirectory>
353353
<skip>${skipTestResourceDownload}</skip>
354354
</configuration>

0 commit comments

Comments
 (0)