Skip to content

Commit 807c447

Browse files
committed
remove legacy snapshor provider no longer supported
1 parent 104c47e commit 807c447

File tree

5 files changed

+6
-11
lines changed

5 files changed

+6
-11
lines changed

core/src/main/java/lucee/runtime/config/maven/MavenUpdateProvider.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,7 @@ public final class MavenUpdateProvider {
5656
private static final Repository DEFAULT_REPOSITORY_SONATYPE_LAST90 = new Repository("Sonatype Repositry for Snapshots (last 90 days)",
5757
"https://central.sonatype.com/repository/maven-snapshots/", Repository.TIMEOUT_15MINUTES, Repository.TIMEOUT_NEVER);
5858

59-
// old up to version 7.0.0.275-SNAPSHOT
60-
private static final Repository DEFAULT_REPOSITORY_SONATYPE_LEGACY = new Repository("Old Sonatype Repositry for Snapshots",
61-
"https://oss.sonatype.org/content/repositories/snapshots/", Repository.TIMEOUT_NEVER, Repository.TIMEOUT_NEVER);
62-
63-
private static final Repository[] DEFAULT_REPOSITORY_SNAPSHOTS_CORE = new Repository[] { DEFAULT_REPOSITORY_SONATYPE_LAST90, DEFAULT_REPOSITORY_SONATYPE_LEGACY };
59+
private static final Repository[] DEFAULT_REPOSITORY_SNAPSHOTS_CORE = new Repository[] { DEFAULT_REPOSITORY_SONATYPE_LAST90 };
6460
private static final Repository[] DEFAULT_REPOSITORY_SNAPSHOTS_EXTENSIONS = new Repository[] { DEFAULT_REPOSITORY_SONATYPE_LAST90 };
6561

6662
private static final Repository[] DEFAULT_REPOSITORY_RELEASES = new Repository[] {
@@ -396,7 +392,6 @@ private Map<String, Object> readFromCache(Repository repository, String artifact
396392
try {
397393
Resource resLastmod = repository.cacheDirectory
398394
.getRealResource("detail_" + HashUtil.create64BitHashAsString(group + "_" + artifact + "_" + version + "_lastmod", Character.MAX_RADIX));
399-
400395
if (resLastmod.isFile()) {
401396
long lastmod = repository.timeoutDetail == Repository.TIMEOUT_NEVER ? Repository.TIMEOUT_NEVER
402397
: Caster.toLongValue(IOUtil.toString(resLastmod, CharsetUtil.UTF8), 0L);

core/src/main/java/resource/setting/sysprop-envvar.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@
592592
"desc": "Maven repository endpoint used by Lucee >= 6 to load snapshot versions",
593593
"category": "osgi",
594594
"type": "string",
595-
"default": "https://oss.sonatype.org/content/repositories/snapshots/"
595+
"default": "https://central.sonatype.com/repository/maven-snapshots/"
596596
},
597597
{
598598
"sysprop": "lucee.pagePool.maxSize",

loader/build.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<project default="core" basedir="." name="Lucee"
33
xmlns:resolver="antlib:org.apache.maven.resolver.ant">
44

5-
<property name="version" value="7.0.2.32-SNAPSHOT"/>
5+
<property name="version" value="7.0.2.33-SNAPSHOT"/>
66

77
<taskdef uri="antlib:org.apache.maven.resolver.ant" resource="org/apache/maven/resolver/ant/antlib.xml">
88
<classpath>

loader/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<groupId>org.lucee</groupId>
55
<artifactId>lucee</artifactId>
6-
<version>7.0.2.32-SNAPSHOT</version>
6+
<version>7.0.2.33-SNAPSHOT</version>
77
<packaging>jar</packaging>
88

99
<name>Lucee Loader Build</name>

loader/src/main/java/lucee/loader/engine/mvn/MavenUpdateProvider.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ public class MavenUpdateProvider {
2525
public static final int READ_TIMEOUT_HEAD = 5000;
2626
public static final int READ_TIMEOUT_GET = 20000;
2727

28-
private static final String DEFAULT_REPOSITORY_SNAPSHOT = "https://oss.sonatype.org/content/repositories/snapshots/";
29-
private static final String DEFAULT_REPOSITORY_RELEASES = "https://oss.sonatype.org/service/local/repositories/releases/content/";
28+
private static final String DEFAULT_REPOSITORY_SNAPSHOT = "https://central.sonatype.com/repository/maven-snapshots/";
29+
private static final String DEFAULT_REPOSITORY_RELEASES = "https://repo1.maven.org/maven2/";
3030

3131
public static final String DEFAULT_GROUP = "org.lucee";
3232
public static final String DEFAULT_ARTIFACT = "lucee";

0 commit comments

Comments
 (0)