Skip to content

Commit 52726f3

Browse files
zelinhgaiksaya
authored andcommitted
Update the maven snapshot publish endpoint and credential (opensearch-project#3806)
Co-authored-by: Sayali Gaikawad <gaiksaya@amazon.com> Signed-off-by: Aaron Alvarez <aaarone@amazon.com>
1 parent e420c14 commit 52726f3

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

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
@@ -66,6 +66,7 @@ buildscript {
6666

6767
repositories {
6868
mavenLocal()
69+
maven { url "https://central.sonatype.com/repository/maven-snapshots/" }
6970
maven { url "https://aws.oss.sonatype.org/content/repositories/snapshots" }
7071
mavenCentral()
7172
}
@@ -91,6 +92,7 @@ apply plugin: 'opensearch.java-agent'
9192
// Repository on root level is for dependencies that project code depends on. And this block must be placed after plugins{}
9293
repositories {
9394
mavenLocal()
95+
maven { url "https://central.sonatype.com/repository/maven-snapshots/" }
9496
maven { url "https://aws.oss.sonatype.org/content/repositories/snapshots" }
9597
mavenCentral() // For Elastic Libs that you can use to get started coding until open OpenSearch libs are available
9698
maven { url 'https://jitpack.io' }
@@ -155,6 +157,7 @@ allprojects {
155157
subprojects {
156158
repositories {
157159
mavenLocal()
160+
maven { url "https://central.sonatype.com/repository/maven-snapshots/" }
158161
maven { url "https://aws.oss.sonatype.org/content/repositories/snapshots" }
159162
mavenCentral()
160163
maven { url "https://ci.opensearch.org/ci/dbc/snapshots/lucene/" }

0 commit comments

Comments
 (0)