Uploaded image for project: 'Talend Component Kit'
  1. Talend Component Kit
  2. TCOMP-2320

Export Dynamic dependencies in job build

Apply templateInsert Lucidchart DiagramXMLWordPrintable

    • All
    • 00317863
    • Hide

      For the connector needing to provide dynamic dependencies, for instance declared in a local-configuration.properties file, you need to create a method annotated with the @DynamicDependencies annotation. This method should take a dataset type object as parameter and should return a List<String> containing the dependencies in gav format. The gav format could be flex be should respect one of the following formats:

      • group:artifact:version
      • group:artifact:type:version
      • group:artifact:type:version:scope
      • group:artifact:type:classifier:version:(scope)

      On job export build, the needed dependencies should be present in the export job.

      Show
      For the connector needing to provide dynamic dependencies, for instance declared in a local-configuration.properties file, you need to create a method annotated with the @DynamicDependencies annotation. This method should take a dataset type object as parameter and should return a List<String> containing the dependencies in gav format. The gav format could be flex be should respect one of the following formats: group:artifact:version group:artifact:type:version group:artifact:type:version:scope group:artifact:type:classifier:version:(scope) On job export build, the needed dependencies should be present in the export job.
    • Small
    • Jira_ID__c Bug_Weight__c Talend_JIRA__c

      When export job/build job, the dynamic config dependency jars don't be exported to classpath, so will miss jars at runtime which is not local studio run

      see https://github.com/Talend/connectors-se/blob/73625393e4f6c52260dba466dcf84bd880b19a01/newjdbc/src/main/java/org/talend/components/jdbc/service/JDBCService.java#L311-L321

      1. when cloud, that code is ok.
      2. when studio runtime
      2.1 that works too for local studio run
      2.2 but export/osgi/and so on, that will not work

        Case
        Case Origin
        Case Type
        Case Age
        00317863 Web Problem 3
        00322016 Web Problem 2
        00322690 Web Problem 13

              Unassigned Unassigned
              wwang Wei Wang
              emmanuel gallois
              Wei Yuan Wei Yuan
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: