Skip to content

LDEV-6708 fall back to the Lucee Maven repository for Lucee 9 jars that are not on the CDN - #10

Open
michaeloffner wants to merge 1 commit into
mainfrom
LDEV-6708-maven-fallback
Open

michaeloffner wants to merge 1 commit into
mainfrom
LDEV-6708-maven-fallback

Conversation

@michaeloffner

Copy link
Copy Markdown
Contributor

The Lucee 9 pre-releases are not on cdn.lucee.org (LDEV-6708: they go to GitHub releases and maven.lucee-services.com only), so luceeVersion: 9.0.0.1487-ALPHA / 9.0/all/light failed with a 404 on https://cdn.lucee.org/lucee-light-9.0.0.1487-ALPHA.jar. Callers had to download the jar themselves and pass luceeJar.

For Lucee 9 and newer (file name lucee-[light-|zero-]9.x.y.z...jar) a failed CDN download is now followed by a download from ${luceeMavenUrl}/org/lucee/lucee/<version>/lucee-<version>[-light|-zero].jar (new property luceeMavenUrl, default https://maven.lucee-services.com), saved under the same cache file name. Older versions behave as before, the CDN error is not hidden by a Maven attempt.

Tested locally with Java 21: -DluceeVersion=9.0/all/light and -DluceeVersion=light-9.0.0.1487-ALPHA both resolve to lucee-light-9.0.0.1487-ALPHA.jar, 404 on the CDN, Maven download, script runs, BUILD SUCCESSFUL. light-7.0.5.41 still comes from the CDN.

Once this is merged, the extension workflows that download the jar themselves (extension-osgi) can go back to plain luceeVersion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant