diff --git a/.github/configs/settings.xml b/.github/configs/settings.xml
new file mode 100644
index 0000000000..45c87139a9
--- /dev/null
+++ b/.github/configs/settings.xml
@@ -0,0 +1,43 @@
+
+
+
+ github
+ ${env.GITHUB_ACTOR}
+ ${env.GITHUB_TOKEN}
+
+
+
+
+
+ local-repo
+
+
+ central
+ https://repo.maven.apache.org/maven2
+
+ true
+
+
+ false
+
+
+
+ staged-releases
+ https://repository.apache.org/content/groups/staging/
+
+
+
+
+ staged-releases
+ https://repository.apache.org/content/groups/staging/
+
+
+
+
+
+
+ local-repo
+
+
diff --git a/.github/workflows/check-dependencies.yml b/.github/workflows/check-dependencies.yml
index 4a2a7168db..fbc8633a59 100644
--- a/.github/workflows/check-dependencies.yml
+++ b/.github/workflows/check-dependencies.yml
@@ -14,6 +14,7 @@ jobs:
dependency-check:
runs-on: ubuntu-latest
env:
+ USE_STAGE: 'true' # Whether to include the stage repository.
SCRIPT_DEPENDENCY: hugegraph-server/hugegraph-dist/scripts/dependency
steps:
- name: Checkout source
@@ -23,6 +24,11 @@ jobs:
with:
java-version: '11'
distribution: 'adopt'
+ - name: use staged maven repo settings
+ if: ${{ env.USE_STAGE == 'true' }}
+ run: |
+ cp $HOME/.m2/settings.xml /tmp/settings.xml
+ mv -vf .github/configs/settings.xml $HOME/.m2/settings.xml
- name: mvn install
run: |
mvn install -DskipTests=true -ntp
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index e3435d5da7..7b94e83be0 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -12,6 +12,7 @@ jobs:
build:
runs-on: ubuntu-20.04
env:
+ USE_STAGE: 'true' # Whether to include the stage repository.
TRAVIS_DIR: hugegraph-server/hugegraph-dist/src/assembly/travis
REPORT_DIR: target/site/jacoco
BACKEND: ${{ matrix.BACKEND }}
@@ -46,6 +47,12 @@ jobs:
with:
fetch-depth: 2
+ - name: use staged maven repo settings
+ if: ${{ env.USE_STAGE == 'true' }}
+ run: |
+ cp $HOME/.m2/settings.xml /tmp/settings.xml
+ mv -vf .github/configs/settings.xml $HOME/.m2/settings.xml
+
- name: Compile
run: |
mvn clean compile -U -Dmaven.javadoc.skip=true -ntp
@@ -53,8 +60,10 @@ jobs:
- name: Install JDK 8
uses: actions/setup-java@v3
with:
+ overwrite-settings: false
java-version: '8'
distribution: 'zulu'
+
- name: Prepare env and service
run: |
$TRAVIS_DIR/install-backend.sh $BACKEND
@@ -62,6 +71,7 @@ jobs:
- name: Install JDK ${{ matrix.JAVA_VERSION }}
uses: actions/setup-java@v3
with:
+ overwrite-settings: false
java-version: ${{ matrix.JAVA_VERSION }}
distribution: 'zulu'
diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml
index a8e40be83a..958e5b1bdc 100644
--- a/.github/workflows/codeql-analysis.yml
+++ b/.github/workflows/codeql-analysis.yml
@@ -11,6 +11,8 @@ on:
jobs:
analyze:
+ env:
+ USE_STAGE: 'true' # Whether to include the stage repository.
name: Analyze
runs-on: ubuntu-latest
permissions:
@@ -33,6 +35,12 @@ jobs:
distribution: 'zulu'
java-version: '11'
+ - name: use staged maven repo settings
+ if: ${{ env.USE_STAGE == 'true' }}
+ run: |
+ cp $HOME/.m2/settings.xml /tmp/settings.xml
+ mv -vf .github/configs/settings.xml $HOME/.m2/settings.xml
+
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
diff --git a/pom.xml b/pom.xml
index b2fc6299aa..5af212fd61 100644
--- a/pom.xml
+++ b/pom.xml
@@ -94,7 +94,32 @@
hugegraph-server
- hugegraph-pd
- hugegraph-store
+
+
+ stage
+
+
+ staged-releases
+ https://repository.apache.org/content/groups/staging/
+
+
+
+
+ staged-releases
+ https://repository.apache.org/content/groups/staging/
+
+
+
+
+ jdk-11-to-17-support
+
+ [11, 17)
+
+
+ hugegraph-store
+ hugegraph-pd
+
+
+