Skip to content

Commit

Permalink
Use the private snapshot repo
Browse files Browse the repository at this point in the history
  • Loading branch information
yuce committed Jul 9, 2024
1 parent 005c475 commit 17e20ed
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 5 deletions.
13 changes: 10 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -216,11 +216,18 @@ following:
- `Supported Java virtual machine <https://docs.hazelcast.com/hazelcast/latest/deploy/versioning-compatibility#supported-java-virtual-machines>`
- `Apache Maven <https://maven.apache.org/>`

Following commands starts the tests:
Set the environment variables for credentials:

.. code:: bash
python run_tests.py
export MAVEN_USERNAME=YOUR_MAVEN_USERNAME
export MAVEN_PASSWORD=YOUR_MAVEN_PASSWORD
Following command starts the tests:

.. code:: bash
python3 run_tests.py
Test script automatically downloads ``hazelcast-remote-controller`` and
Hazelcast. The script uses Maven to download those.
Expand All @@ -233,7 +240,7 @@ License
Copyright
---------

Copyright (c) 2008-2023, Hazelcast, Inc. All Rights Reserved.
Copyright (c) 2008-2023, Hazelcast, Inc. All Rights Reserved.

Visit `hazelcast.com <https://hazelcast.com>`__ for more
information.
9 changes: 9 additions & 0 deletions settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<settings>
<servers>
<server>
<id>temp</id>
<username>${env.MAVEN_USERNAME}</username>
<password>${env.MAVEN_PASSWORD}</password>
</server>
</servers>
</settings>
7 changes: 5 additions & 2 deletions start_rc.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

RELEASE_REPO = "https://repo1.maven.apache.org/maven2"
ENTERPRISE_RELEASE_REPO = "https://repository.hazelcast.com/release/"
SNAPSHOT_REPO = "https://oss.sonatype.org/content/repositories/snapshots"
SNAPSHOT_REPO = "https://repository.hazelcast.com/snapshot-internal/"
ENTERPRISE_SNAPSHOT_REPO = "https://repository.hazelcast.com/snapshot/"
HAZELCAST_GROUP = "com.hazelcast"

Expand Down Expand Up @@ -46,14 +46,17 @@ def download_if_necessary(repo, group, artifact_id, version, is_test_artifact=Fa

args = [
"mvn",
"-q",
"-X",
"org.apache.maven.plugins:maven-dependency-plugin:2.10:get",
"-Dtransitive=false",
"-DremoteRepositories=" + repo,
"-Dartifact=" + artifact,
"-Ddest=" + dest_file_name,
"--settings=settings.xml",
]

print("Maven Args:", args)

process = subprocess.run(args, shell=IS_ON_WINDOWS)
if process.returncode != 0:
print("Failed to download " + dest_file_name)
Expand Down

0 comments on commit 17e20ed

Please sign in to comment.