How to share custom components created using Talend Component Kit

Overview

Components are created as .car files, and you can install these files like this:

java -jar myComponent.car studio-deploy C:/Talend/studio/

However, this way, only one Studio user benefits from the component.

 

This article shows you how to share your custom components with other Studio users and how to upload the components to Nexus automatically.

 

Prerequisites

  • You have custom components in .car format

    If not, read the article, Sharing custom components in the Talend Community Knowledge Base (KB).

  • You're using Talend Enterprise version

    If not, read the Talend blog, Installing Components from a CAR file.

  • You have Nexus / Artifactory available

    If there isn't an artifact repository available for the custom components, they need to be installed for each Studio user individually. Read the Sharing custom components KB article for the steps.

 

Nexus settings

Create a new Maven 2 repository. Make sure that the Version policy is in Release mode and that the Deployment policy is set to Allow redeploy, as shown below:

Nexus 3 sample settingsNexus 3 sample settings

As of 7.3.1, Studio supports sharing components to a snapshot repository as well.

 

Talend accesses this Nexus using the user configured on the Configuration page under Artifactory Repository in Talend Administration Center.

Location of Nexus credentials in Talend Administration CenterLocation of Nexus credentials in Talend Administration Center

 

Studio settings

In Studio, configure the Repository Share option and create a patches folder by following the steps in Installing and sharing custom components created using Talend Component Kit, available in the Talend Help Center.

 

After logging into a project, Studio uploads all the installed components to Nexus. Then, Studio generates an index file, for example:

<nexus>/<repository>/org/talend/components/index/<version>/index-<version>.xml

This file only exists in Nexus. Studio doesn't have a copy of it locally only in memory.

 

Using this method uploads all the components from studio/configuration/components/installed/.

 

The components are installed through the patches folder and are uploaded to Nexus. Then, after a restart, other Studio users can download the components from Nexus.

Installing a component through patches folder results in this messageInstalling a component through patches folder results in this message

 

Downloading the components

  1. Start Studio.

  2. Open the project, select Yes to restart Studio.

    Missing components are downloaded and user is prompted to install them by restarting StudioMissing components are downloaded and user is prompted to install them by restarting Studio

  3. Notice that the custom components are now available to use.

  4. Review the Nexus contents, they should look similar to this:

    Nexus contentsNexus contents

Version history
Revision #:
19 of 19
Last update:
‎04-22-2020 02:36 PM
Updated by:
 
Contributors