Maven依赖PDI(Pentaho Kettle)Jar文件

时间:2014-07-21 18:05:21

标签: maven pentaho kettle

我编写了Java代码来执行我的转换和Jobs,我手动将data-integration / lib文件夹中的所有Jar文件添加到我的类路径中,并且evrything工作正常。

现在我想对我的项目进行编组并查找XML,该XML指定数据集成的lib目录中存在的每个jar的groupid和artifact Id。我在这里找到link,但它们不包含所有依赖项。

PDI版本 - 5.0.1稳定

5 个答案:

答案 0 :(得分:5)

这是我最新使用的:

<properties>
    <pentaho-kettle.version>5.4.1.8-209</pentaho-kettle.version>
</properties>

<repositories>
    <repository>
        <id>pentaho-releases</id>
        <url>http://nexus.pentaho.org/content/groups/omni</url>
    </repository>
</repositories>

<dependencies>
    <dependency>
        <groupId>pentaho-kettle</groupId>
        <artifactId>kettle-core</artifactId>
        <version>${pentaho-kettle.version}</version>
    </dependency>
    <dependency>
        <groupId>commons-vfs</groupId>
        <artifactId>commons-vfs</artifactId>
        <version>1.0</version>
    </dependency>
    <dependency>
        <groupId>pentaho-kettle</groupId>
        <artifactId>kettle-engine</artifactId>
        <version>${pentaho-kettle.version}</version>
    </dependency>
    <dependency>
        <groupId>pentaho-kettle</groupId>
        <artifactId>kettle-ui-swt</artifactId>
        <version>${pentaho-kettle.version}</version>
    </dependency>
    <dependency>
        <groupId>pentaho-library</groupId>
        <artifactId>libformula</artifactId>
        <version>${pentaho-kettle.version}</version>
        <exclusions>
            <exclusion>
                <groupId>commons-logging</groupId>
                <artifactId>commons-logging-api</artifactId>
            </exclusion>
        </exclusions>
    </dependency>
    <dependency>
        <groupId>org.codehaus.janino</groupId>
        <artifactId>janino</artifactId>
        <version>2.5.16</version>
    </dependency>
    <dependency>
        <groupId>org.mozilla</groupId>
        <artifactId>rhino</artifactId>
        <version>1.7R5</version>
    </dependency>
    <dependency>
        <groupId>javax.mail</groupId>
        <artifactId>javax.mail-api</artifactId>
        <version>1.4.7</version>
    </dependency>

    <dependency>
        <groupId>mysql</groupId>
        <artifactId>mysql-connector-java</artifactId>
        <version>5.1.35</version>
        <scope>runtime</scope>
    </dependency>

</dependencies>

如果使用Json Output步骤,您还需要:

    <dependency>
        <groupId>com.googlecode.json-simple</groupId>
        <artifactId>json-simple</artifactId>
        <version>1.1</version>
    </dependency>

要调用REST服务,您需要这样:

    <dependency>
        <groupId>com.sun.jersey</groupId>
        <artifactId>jersey-client</artifactId>
        <version>1.19</version>
    </dependency>
    <dependency>
        <groupId>org.apache.httpcomponents</groupId>
        <artifactId>httpclient</artifactId>
        <version>4.5.1</version>
    </dependency>
    <dependency>
        <groupId>com.sun.jersey.contribs</groupId>
        <artifactId>jersey-apache-client</artifactId>
        <version>1.18</version>
    </dependency>
    <dependency>
        <groupId>jsonpath</groupId>
        <artifactId>jsonpath</artifactId>
        <version>1.0</version>
    </dependency>

答案 1 :(得分:1)

我找到了这个链接:

http://forums.pentaho.com/showthread.php?131872-Maven-Dependencies-for-Pentaho-DataIntegration

希望有所帮助:)


[编辑修改我的回答]

我试图对我的插件开发进行整合。请查看此博客: https://anotherreeshu.wordpress.com/2014/12/29/maven-dependencies-for-building-pentaho-di-kettle-plugins/

我使用了博客链接中解释的pom.xml。我为pentaho版本开发了:5.0.0.1。尝试使用它并检查它是否能解决您的问题:)

答案 2 :(得分:1)

我只是使用它,对我来说 ok

    <repository>
        <id>pentaho-repo</id>
        <url>http://repository.pentaho.org/artifactory/repo/</url>
    </repository>

答案 3 :(得分:0)

我必须添加这两个依赖项才能在6.1.x版本中正常工作

   <dependency>
                <groupId>org.jxls</groupId>
                <artifactId>jxls-jexcel</artifactId>
                <version>1.0.6</version>
     </dependency>

<dependency>
        <groupId>simple-jndi</groupId>
        <artifactId>simple-jndi</artifactId>
        <version>0.11.4</version>
</dependency>

答案 4 :(得分:0)

这是Gradle版本:

 maven {
        url 'https://public.nexus.pentaho.org/content/groups/omni/'
    }