|
2 | 2 |
|
3 | 3 | ## Overview |
4 | 4 |
|
5 | | -This guide outlines the steps needed to integrate the TuxCare Vetted repository into your Java application. The repository provides trusted, vetted Java libraries that can be easily integrated into your Maven project. |
| 5 | +This guide outlines the steps needed to integrate the TuxCare ELS Spring repository into your Java application. The repository provides trusted Java libraries that can be easily integrated into your Maven as well as Gradle project. |
6 | 6 |
|
7 | 7 | ## Steps |
8 | 8 |
|
9 | | -### Step 1: Locate the Repository |
| 9 | +### Step 1: Get user credntials |
| 10 | +You need username and password in order to use TuxCare ELS Spring repository. Anonymous access is disabled. |
10 | 11 |
|
11 | | -You can find the Trusted repository using the following link: [TuxCare Vetted Repository](https://nexus-repo.corp.cloudlinux.com/#browse/browse:tuxcare_vetted). |
| 12 | +### Step 2: Locate the Repository |
12 | 13 |
|
13 | | -### Step 2: Create or Modify Your Build Tool Settings |
| 14 | +You can find the Trusted repository using the following link: [TuxCare ELS Spring](https://nexus-repo.corp.cloudlinux.com/#browse/browse:els_spring). |
14 | 15 |
|
15 | | -If you are using Maven as your build automation tool, you will need to make changes in your `${MAVEN_HOME}/settings.xml` file. If the file does not already exist in your Maven home directory (`${MAVEN_HOME}`), you should create one. Open the `settings.xml` file with a text editor and include the following configuration: |
| 16 | +### Step 3: Create or Modify Your Build Tool Settings |
| 17 | + |
| 18 | +#### Maven |
| 19 | + |
| 20 | +If you are using Maven as your build automation tool, you will need to make changes in your `${MAVEN_HOME}/settings.xml` file. If the file does not already exist in your Maven home directory (`${MAVEN_HOME}`), you should create one. Open the `settings.xml` file with a text editor and include the following configuration: |
16 | 21 |
|
17 | 22 | ```xml |
18 | 23 | <?xml version="1.0" encoding="UTF-8"?> |
19 | 24 | <settings xmlns="http://maven.apache.org/SETTINGS/1.1.0"> |
20 | | - <profiles> |
21 | | - <profile> |
22 | | - <id>tuxcare</id> |
23 | | - <repositories> |
24 | | - <repository> |
25 | | - <id>tuxcare-vetted</id> |
26 | | - <name>TuxCare Vetted Repository</name> |
27 | | - <url>https://nexus-repo.corp.cloudlinux.com/repository/tuxcare-vetted/</url> |
28 | | - </repository> |
29 | | - </repositories> |
30 | | - </profile> |
31 | | - </profiles> |
32 | | - <activeProfiles> |
33 | | - <activeProfile>tuxcare</activeProfile> |
34 | | - </activeProfiles> |
| 25 | + <servers> |
| 26 | + <server> |
| 27 | + <id>repository-id</id> |
| 28 | + <username>your-username</username> |
| 29 | + <password>your-password</password> |
| 30 | + </server> |
| 31 | + </servers> |
35 | 32 | </settings> |
36 | 33 | ``` |
37 | 34 |
|
38 | | -In this configuration, a profile named `tuxcare` is created. The TuxCare Vetted repository is added to this profile, and this profile is set to be activated by default in the `activeProfiles` section. |
| 35 | +In this configuration ```your-username``` and ```your-password``` are your credentials mentioed in the Step 1. You may choose an arbitrary allowed value instead of ```repository-id``` and use the same value in the following snippet from your `pom.xml` file: |
| 36 | +```xml |
| 37 | +<repositories> |
| 38 | + <repository> |
| 39 | + <id>repository-id</id> |
| 40 | + <url>https://nexus-repo.corp.cloudlinux.com/repository/els_spring/</url> |
| 41 | + </repository> |
| 42 | +</repositories> |
| 43 | +``` |
| 44 | + |
| 45 | +#### Gradle |
39 | 46 |
|
40 | 47 | If you are using Gradle as your build automation tool, make sure to include the following configuration in your project setup: |
41 | 48 |
|
42 | 49 | ```gradle |
43 | 50 | repositories { |
44 | 51 | maven { |
45 | | - url = uri("https://nexus-repo.corp.cloudlinux.com/repository/tuxcare-vetted/") |
| 52 | + url = uri("https://nexus-repo.corp.cloudlinux.com/repository/els_spring") |
| 53 | + credentials { |
| 54 | + username = "your-username" |
| 55 | + password = "your-password" |
| 56 | + } |
46 | 57 | } |
47 | 58 | } |
48 | 59 | ``` |
| 60 | +In this configuration ```your-username``` and ```your-password``` are your credentials mentioed in the Step 1. |
49 | 61 |
|
50 | 62 | ## Verification |
51 | 63 |
|
|
0 commit comments