Skip to content

Commit 5ec26e6

Browse files
opensearch-trigger-bot[bot]github-actions[bot]gaiksaya
authored
Update the maven snapshot publish endpoint and credential (opensearch-project#3806) (opensearch-project#3979)
(cherry picked from commit 7ccdcd1) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Sayali Gaikawad <gaiksaya@amazon.com>
1 parent 0c0c89d commit 5ec26e6

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

async-query-core/src/main/java/org/opensearch/sql/spark/data/constants/SparkConstants.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public class SparkConstants {
7272
public static final String PPL_STANDALONE_PACKAGE =
7373
"org.opensearch:opensearch-spark-ppl_2.12:0.3.0-SNAPSHOT";
7474
public static final String AWS_SNAPSHOT_REPOSITORY =
75-
"https://aws.oss.sonatype.org/content/repositories/snapshots";
75+
"https://central.sonatype.com/repository/maven-snapshots/";
7676
public static final String GLUE_HIVE_CATALOG_FACTORY_CLASS =
7777
"com.amazonaws.glue.catalog.metastore.AWSGlueDataCatalogHiveClientFactory";
7878
public static final String FLINT_DELEGATE_CATALOG =

async-query-core/src/test/java/org/opensearch/sql/spark/dispatcher/SparkQueryDispatcherTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -981,7 +981,7 @@ private String constructExpectedSparkSubmitParameterString(
981981
"spark.hadoop.fs.s3.customAWSCredentialsProvider=com.amazonaws.emr.AssumeRoleAWSCredentialsProvider",
982982
"spark.hadoop.aws.catalog.credentials.provider.factory.class=com.amazonaws.glue.catalog.metastore.STSAssumeRoleSessionCredentialsProviderFactory",
983983
"spark.jars.packages=org.opensearch:opensearch-spark-standalone_2.12:0.3.0-SNAPSHOT,org.opensearch:opensearch-spark-sql-application_2.12:0.3.0-SNAPSHOT,org.opensearch:opensearch-spark-ppl_2.12:0.3.0-SNAPSHOT",
984-
"spark.jars.repositories=https://aws.oss.sonatype.org/content/repositories/snapshots",
984+
"spark.jars.repositories=https://central.sonatype.com/repository/maven-snapshots/",
985985
"spark.emr-serverless.driverEnv.JAVA_HOME=/usr/lib/jvm/java-17-amazon-corretto.x86_64/",
986986
"spark.executorEnv.JAVA_HOME=/usr/lib/jvm/java-17-amazon-corretto.x86_64/",
987987
"spark.emr-serverless.driverEnv.FLINT_CLUSTER_NAME=TEST_CLUSTER",

build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ buildscript {
6464

6565
repositories {
6666
mavenLocal()
67+
maven { url "https://central.sonatype.com/repository/maven-snapshots/" }
6768
maven { url "https://aws.oss.sonatype.org/content/repositories/snapshots" }
6869
mavenCentral()
6970
}
@@ -88,6 +89,7 @@ apply plugin: 'opensearch.java'
8889
// Repository on root level is for dependencies that project code depends on. And this block must be placed after plugins{}
8990
repositories {
9091
mavenLocal()
92+
maven { url "https://central.sonatype.com/repository/maven-snapshots/" }
9193
maven { url "https://aws.oss.sonatype.org/content/repositories/snapshots" }
9294
mavenCentral() // For Elastic Libs that you can use to get started coding until open OpenSearch libs are available
9395
maven { url 'https://jitpack.io' }
@@ -156,6 +158,7 @@ allprojects {
156158
subprojects {
157159
repositories {
158160
mavenLocal()
161+
maven { url "https://central.sonatype.com/repository/maven-snapshots/" }
159162
maven { url "https://aws.oss.sonatype.org/content/repositories/snapshots" }
160163
mavenCentral()
161164
maven { url "https://d1nvenhzbhpy0q.cloudfront.net/snapshots/lucene/" }

0 commit comments

Comments
 (0)