2014-07-21 70 views
9

我已經寫Java代碼來執行我的改造和喬布斯和我都手動添加出現的所有數據集成/ lib文件夾中的JAR文件到我的類路徑和evrything工作精細。Maven的依賴於PDI(Pentaho的壺)Jar文件

現在我想mavenize我的項目,尋找XML指定爲每一個存在於數據集成的lib目錄下的jar的groupId和工件ID。我在這裏找到了link,但它們不包含所有的依賴關係。

PDI版本 - 5.0.1穩定

回答

0

我發現這個鏈接:

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。嘗試使用這一點,並檢查它是否解決您的問題:)

3

這裏最新的使用:

<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輸出步驟中,您還需要這樣的:

<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

即使,這不能100%可靠地工作。用戶定義的Java步驟已中斷。所以我在github上開始了一個項目來收集更多修正 - https://github.com/atramos/PDI-Kettle-Tomcat-Spring-Maven-Demo –

1

我只是用這個和它的對我來說沒

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

我要補充這兩個依賴於6.1.x版本的做工精細

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

<dependency> 
     <groupId>simple-jndi</groupId> 
     <artifactId>simple-jndi</artifactId> 
     <version>0.11.4</version> 
    </dependency> 
與我的編輯