【问题标题】:Custom component with dynamic configuration like jira, jdbc or azurestorage in talend具有动态配置的自定义组件,如 talend 中的 jira、jdbc 或 azurestorage
【发布时间】:2017-09-13 02:44:49
【问题描述】:

我想创建一个具有动态配置的 Talend 组件。我尝试了各种资源来实现这一目标,但没有运气, apprach I tried previously 但是我无法将组件与插件链接,它总是给出错误

加载组件失败

然后我正在尝试创建像 azure storage 这样的插件,我从 talend components with dynamic configuraion 克隆了 repo 我开发了azure storage之类的新组件,并尝试在

中注册

C:\Users\sandy\Documents\talend\TOS_BD-20161216_1026-V6.3.1\features\org.talend.tos.components.feature_6.3.1.20161216_1026/feature.xml 通过添加

 <plugin
          id="rg.talend.components.mycomp"
          download-size="0"
          install-size="0"
          version="0.14.0"
          unpack="false"/>

然后创建一个组件并安装到 Talend。就像其他组件一样,Jira、azure 和 JDBC,但不幸的是,它没有显示我在代码中设置的任何内容。 如果有人知道我该如何实现

【问题讨论】:

    标签: java eclipse-plugin talend custom-component talend-mdm


    【解决方案1】:

    我在 Talend git 存储库中找到了解决方案, 您可以按照以下步骤创建自定义组件

    1. 在您的机器上设置 maven 和 java
    2. 转到您的工作区并运行以下命令

      mvn org.apache.maven.plugins:maven-archetype-plugin:2.4:generate -DarchetypeGroupId=org.talend.components -DarchetypeArtifactId=input-component-archetypes -DarchetypeVersion=0.20.0-SNAPSHOT  -DarchetypeRepository=https://artifacts-oss.talend.com/nexus/content/repositories/TalendOpenSourceRelease/
      
    3. 在您运行命令时,它会询问您一些问题,例如组件名称和版本等。

    4. 一旦你完成了命令,它会为你生成一个输入组件模板

    5. 在命令中有 DarchetypeVersion 版本,如果您需要不同的版本,您可以更改

       -DarchetypeVersion=0.20.0-SNAPSHOT 
      

      在我的情况下,我使用的是

       -DarchetypeVersion=0.16.0-SNAPSHOT 
      
    6. 现在只需找到组件的 POM.XML 文件并运行命令

        mvn install
      
    7. 此命令将编译源代码并生成几个具有不同分类器的 jar 文件。罐子和捆绑
    8. 在编译过程中可能会出现错误,现在删除测试类。
    9. 编译源代码后,将捆绑包 jar 文件复制到 Talend root->plugins
    10. 重启 Talend Studio
    11. 重新启动 Talend 后,在调色板中搜索您的组件

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-11-16
      • 2018-06-28
      相关资源
      最近更新 更多