Generates the latest/greatest Maven-based artifacts for the Openfire project, every night.

Build: #3271 was successful Scheduled with changes by Guus der Kinderen

Stages & jobs

  1. Build and Package

Build result summary

Details

Completed
Queue duration
< 1 second
Duration
10 minutes
Labels
None
Agent
mesonet-ah.agron.iastate.edu (4)
Revision
2f680fa1541b9225722999306132074c609fd465
Total tests
1728
Successful since
#3235 ()

Tests

Code commits

Author Commit Message Commit date
Guus der Kinderen Guus der Kinderen cc41c7e22019370b9eabe10baac28fc0b4723a80 CI / GitHub workflow: Cache Maven Wrapper artifacts
Our GitHub workflow uses the 'maven' cache that's provided by the `actions/setup-java` action.

I was surprised to see the following build failure earlier today:

```
Run ./mvnw -B install --file pom.xml
  ./mvnw -B install --file pom.xml
  shell: /usr/bin/bash -e {0}
  env:
    CI: true
    REGISTRY: ghcr.io
    IMAGE_NAME: openfire
    JAVA_HOME: /opt/hostedtoolcache/Java_Zulu_jdk/25.0.3-9/x64
    JAVA_HOME_25_X64: /opt/hostedtoolcache/Java_Zulu_jdk/25.0.3-9/x64
Error: Exception in thread "main" java.io.IOException: Server returned HTTP response code: 429 for URL: https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip
        at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1713)
        at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1305)
        at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:223)
        at org.apache.maven.wrapper.DefaultDownloader.downloadInternal(DefaultDownloader.java:100)
        at org.apache.maven.wrapper.DefaultDownloader.download(DefaultDownloader.java:86)
        at org.apache.maven.wrapper.Installer.createDist(Installer.java:84)
        at org.apache.maven.wrapper.WrapperExecutor.execute(WrapperExecutor.java:160)
        at org.apache.maven.wrapper.MavenWrapperMain.main(MavenWrapperMain.java:73)
Error: Process completed with exit code 1.
```

This shows that Maven is still being downloaded, instead of the wrapped version being cached/used.

Apparently, the 'maven' cache from the `actions/setup-java` action does not cache these artifacts. With the changes in this commit, they now should.
Guus der Kinderen Guus der Kinderen 2f680fa1541b9225722999306132074c609fd465 (code review) Bump  from v4 to v5

Shared artifacts

Artifact File size
install4j-generated media 5 KB