Talend Artifact Repository is based on
Nexus.
Procedure
- Unzip the Artifact-Repository-Nexus-VA.B.C.D-E archive file in a dedicated folder.
-
Add the execution rights to the relevant files by
running the following command:
chmod 755
-
From the <ApplicationFolder>/bin folder, launch the Talend Artifact Repository instance using the
following command:
./nexus run
Nexus runs in the console. - To run Talend Artifact Repository as a service, follow the procedure of the Nexus documentation at https://help.sonatype.com/repomanager3/installation/run-as-a-service.
- Log into the Talend Artifact Repository Web application (default login information: admin/Talend123). Make sure you have the relevant rights to access the release and snapshot repositories.
After the first connection, it is strongly recommended to change the default credentials of the default administrator account.
-
Change the default credentials of the admin user:
- In the left panel of the Talend Artifact Repository Web application, select Security > Users.
-
Right-click the
admin
user and select Set Password. -
Enter a new password for the
admin
user.
-
Grant browse permissions on the repositories
talend-custom-libs-release and
talend-custom-libs-snapshot to the user
talend-updates-admin.
- In the left panel of the Talend Artifact Repository Web application, select Security > Roles.
- On the top of the right panel, click Create role > Nexus role to open the Create Role view.
-
Create a role nx-view-custom-libs-browse and
assign privileges
nx-repository-view-maven2-talend-custom-libs-release-browse
and
nx-repository-view-maven2-talend-custom-libs-snapshot-browse
to it.
- In the left panel of the Talend Artifact Repository Web application, select Security > Users.
- Click the user talend-updates-admin to open its details view.
-
Edit the user by assigning the newly created role
nx-view-custom-libs-browse to it.
-
Execute the following commands in Curl or Postman to
validate the permissions assigned to the user talend-updates-admin, where
<password>
represents the password of the user and <nexus_url> represents the URL of the Talend Artifact Repository Web application.# Search talend-custom-libs-release curl -k -u "talend-updates-admin:<password>" "<nexus_url>/service/rest/v1/search?repository=talend-custom-libs-release&group=xml-apis" # Search talend-custom-libs-snapshot curl -k -u "talend-updates-admin:<password>" "<nexus_url>/service/rest/v1/search?repository=talend-custom-libs-snapshot&group=org.talend.libraries"
The corresponding items should be returned in the result.