Editing Bean libraries - Cloud - 7.3

Talend Studio User Guide

Version
Cloud
7.3
Language
English
Product
Talend Big Data
Talend Big Data Platform
Talend Cloud
Talend Data Fabric
Talend Data Integration
Talend Data Management Platform
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Real-Time Big Data Platform
Module
Talend Studio
Content
Design and Development
Last publication date
2024-02-13
Available in...

Cloud API Services Platform

Cloud Data Fabric

Data Fabric

Data Services Platform

ESB

MDM Platform

Real-Time Big Data Platform

You can edit the library of a Bean by importing external libraries (usually .jar files) for it.

If you have installed the R2021-03 Studio monthly update or a later one provided by Talend, you can import external libraries for an inner Bean by editing the library of the custom Bean Jar in which the inner Bean is bundled.

These external library files will be listed in the Modules view in your Studio. For more information on the Modules view, see Installing external modules to Talend Studio.

The imported library will be also listed in the library file of your Studio.

About this task

To edit the library for a Bean or a custom Bean Jar, complete the following:

Procedure

  1. If the library to be imported is not available on your machine, either download and install it using the Modules view or download and store it in a local directory.
  2. In the Repository tree view, right-click the Bean or the custom Bean Jar and then select Edit Bean Libraries or Edit Bean Jar libraries.
    The Import External Library dialog box displays.

    The Maven Uri column is available only if you have installed the R2020-11 Studio monthly update or a later one provided by Talend.

  3. Click New... to open the Module dialog box where you can import the external library.
  4. If you have installed the library using the Modules view, select the Platform option and then select the library from the list, or
    • if you have not installed the R2020-10 Studio monthly update or a later one provided by Talend, select the Artifact repository (local m2/nexus) > Find by name or Artifact repository (local m2/nexus) > Find by Maven URI option, then specify the full name or Maven URI of the library module, and click the Detect the module install status button to validate its installation status.
    • if you have installed the R2020-10 Studio monthly update or a later one provided by Talend, select the Artifact repository (local m2/nexus) option, enter the search keyword in the Module Name field, click Search Local to search in the local repository <TalendStudio>\configuration\.m2 or click Search Remote to search in the remote artifact repository, then select the library from the list below. The search keyword can be the partial or full name of the library.

      Note that the Search Remote button is available only when the user libraries is set up in Talend Administration Center or Talend Management Console.

  5. If you have stored the library file in a local directory, select the Install a new module option, and click the [...] button to browse to the library file.

    If the MVN URI of the library exists in the file <TalendStudio>\configuration\MavenUriIndex.xml, it is automatically filled in the Default MVN URI field.

    • If you have not installed the R2020-10 Studio monthly update or a later one provided by Talend, and if you need to customize the Maven URI of the library, select the Custom MVN URI check box, specify the new URI, and then click the Detect the module install status button to validate its installation status.
    • If you have installed the R2020-10 Studio monthly update or a later one provided by Talend, and if the MVN URI of the library is within the jar file, it is automatically detected and filled in the Custom MVN URI field if it is different from the default MVN URI. Select the Custom MVN URI check box if you want to change the custom Maven URI or use the custom Maven URI to install the library. If neither the default MVN URI nor the custom MVN URI exists, the Default MVN URI field is filled with mvn:org.talend.libraries/<jarname>/6.0.0-SNAPSHOT/jar.
  6. Click OK to confirm your changes.
    The imported library file is listed in the Library File list in the Import External Library dialog box.
    Note: You can delete any of the already imported routine files if you select the file in the Library File list and click Remove.
  7. To include the external libraries when building your Route as a standalone Route to be executed out of Talend Studio, select the corresponding Required check box. Otherwise, you will get the "class not found" error when the Route is executed.
    By default, the Required check box is selected for each imported library.
    If you have imported Camel or CXF libraries and you need to build your Route as an OSGI bundle to be deployed on Talend Runtime, it is recommended that you clear the Required check box to avoid issues caused by duplicate class paths, as those libraries are already provided with Talend Runtime bundles.
  8. Click Finish to close the dialog box.