Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update with new maven repo instructions #103

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 17 additions & 16 deletions content/quickstart/java/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,26 @@ topics:

Before starting the following example make sure you have GemFire installed.

To use a Java client with GemFire, you must add the dependencies that are appropriate for your application. The GemFire dependencies are available from the [Pivotal Commercial Maven Repo](https://commercial-repo.pivotal.io/login/auth). Access to the Pivotal Commercial Maven Repository requires a one-time registration step to create an account.
To use a Java client with GemFire, you must add the dependencies that are appropriate for your application. The GemFire dependencies are available from the [Broadcom Support Portal](https://support.broadcom.com).

## Add GemFire to a Project
## Access the GemFire Maven Artifacts
To add GemFire to a Maven or Gradle project
1. In a browser, navigate to the [Pivotal Commercial Maven Repository](https://commercial-repo.pivotal.io/login/auth).
2. Click the **Create Account** link.
3. Complete the information in the registration page and accept the EULA.
4. Click **Register**.
5. After registering, you will receive a confirmation email. Follow the instruction in this email to activate your account.
6. Add the GemFire repository to your project:
1. In a browser, navigate to the [Broadcom Support Portal](https://support.broadcom.com).
2. After signing in, click **My Downloads** in menu on the left.
3. Search for and click on **Tanzu GemFire**
4. On the Tanzu GemFire product page, click the product to expand the releases.
5. Scroll down the releases and find the release named **Click Green Token for Repository Access** (you may have to click “Show All Releases” in order to see it).
6. Click the green shield icon on the right and read the instructions, making sure to capture the token text.
7. Add the GemFire repository to your project:

- **Maven**
Add the following to the `pom.xml` file:
```xml
<repositories>
<repository>
<id>gemfire-release-repo</id>
<name>Pivotal GemFire Release Repository</name>
<url>https://commercial-repo.pivotal.io/data3/gemfire-release-repo/gemfire</url>
<name>GemFire Release Repository</name>
<url>https://packages.broadcom.com/artifactory/gemfire/</url>
</repository>
</repositories>
```
Expand All @@ -40,29 +41,29 @@ To add GemFire to a Maven or Gradle project
username "$gemfireRepoUsername"
password "$gemfireRepoPassword"
}
url = uri("https://commercial-repo.pivotal.io/data3/gemfire-release-repo/gemfire")
url = uri("https://packages.broadcom.com/artifactory/gemfire/")
}
}
```
7. Add your Pivotal Commercial Maven Repository credentials.
7. Add your GemFire Maven Repository credentials.
- **Maven**
Add the following to the `.m2/settings.xml` file. Replace `MY-USERNAME@example` and `MY-DECRYPTED-PASSWORD` with your Pivotal Commercial Maven Repository credentials.
Add the following to the `.m2/settings.xml` file. Replace `MY-USERNAME@example` with your support.broadcom.com login email and `MY-GEMFIRE-MAVEN-TOKEN` with the Password / Access token information from the step above.
```xml
<settings>
<servers>
<server>
<id>gemfire-release-repo</id>
<username>[email protected]</username>
<password>MY-DECRYPTED-PASSWORD</password>
<password>MY-GEMFIRE-MAVEN-TOKEN</password>
</server>
</servers>
</settings>
```
- **Gradle**
Add the following to the local `.gradle/gradle.properties` or project `gradle.properties` file. Replace `MY-USERNAME@example` and `MY-DECRYPTED-PASSWORD` with your Pivotal Commercial Maven Repository credentials.
Add the following to the local `.gradle/gradle.properties` or project `gradle.properties` file. Replace `MY-USERNAME@example` with your support.broadcom.com login email and `MY-GEMFIRE-MAVEN-TOKEN` with the Password / Access token information from the step above.
```groovy
[email protected]
gemfireRepoPassword=MY-DECRYPTED-PASSWORD
gemfireRepoPassword=MY-GEMFIRE-MAVEN-TOKEN
```
8. Add the dependencies to the project.
- **Maven**
Expand Down