克隆并建立Pentaho水壶 [英] Clone and Build Pentaho Kettle

查看:90
本文介绍了克隆并建立Pentaho水壶的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对不起,我提出了一个基本问题,但我已经尝试了一段时间,对此一无所获. 有没有人有经验克隆Pentaho-kettle项目并将其导入Eclipse? 我按照 https://github.com/pentaho/pentaho-kettle 中的说明进行操作. 我做了以下

Sorry for basic question, but I have been trying for a while and cannot get anywhere with this. Any one have experience clone the Pentaho-kettle project and import it into eclipse? I follow the instruction from https://github.com/pentaho/pentaho-kettle. I did the following

cd pentaho-kettle
ant clean-all resolve create-dot-classpath

然后我进入eclipse并将现有项目导入到工作区中.请注意,我是从根文件夹导入的.我是否应该包括扫描嵌套项目的选项? 即便如此,我也进入了几乎所有模块(核心,引擎,用户界面...)以运行相同的ant任务.但是,我在eclipse中仍然有很多错误. 一些错误是:找不到类型java.lang.Object(这确实很奇怪),还有很多其他无法解析. 我还需要执行其他步骤吗?如果您已成功从仓库中克隆并构建成功,请在这里为我提供帮助.

Then I go into eclipse and Import Existing Project into workspace. Note that I am importing from the root folder. Should I include the option scan the nested projects? Even that, I went into almost all the module(core, engine, ui...) to run the same ant task. However, I still have a bunch of error within eclipse. Some errors are : Cannot find Type java.lang.Object (which is really strange), and a bunch other not resolving. Is there any other step I need to follow. If you have success cloning and building from the repo, please help me out here.

要更新,请按照以下说明进行操作:

To update, this is what I got after following the instruction:

推荐答案

如何构建Pentahos水壶

How to build Pentahos Kettle

下面是简单的说明.

必备工具

ant https://ant.apache.org

首先,执行以获取最新的母版

First, execute to get latest master

git checkout https://github.com/pentaho/pentaho-kettle.git

然后执行(以获得所需的稳定版本)

then execute (to get stable release u need)

git checkout -b production origin/production

其中 production 是名称之一(红色突出显示)

where production is one of names can be found (highlighted red)

您实际上已经可以将该项目导入eclipse(文件->导入).如果您将分配给eclipse至少2GB RAM,这会更好(这是一个很大的项目).在$ ECLIPSE_HOME/eclipse.ini文件中进行一些更改:

u actually already may import this project into eclipse (File->Import). Better if u will assign to eclipse at least 2GB RAM (it is pretty big project). Make some changes in $ECLIPSE_HOME/eclipse.ini file:

-Xms2048m
-Xmx2048m

现在,导入完成后,eclipse看起来会这样

Now after import is done, eclipse will look this way

突出显示:

  • 红色(导入pentaho-kettle项目后的默认项目)
  • blue是我签出的项目(也考虑版本),并在构建路径中添加到pentaho-kettle项目中(尽管某些类丢失了,尽管根据常春藤它们必须位于类路径中)
  • 绿色错误是日食中的错误.甚至在我成功构建/运行/执行水壶DI之后留下的那些东西.另一个错误是不好的.

打开控制台(假设您的机器上已经有ant蚂蚁,并且您的PATH中已经有ant命令)

Open console (I assume ant already available on u machine and ant command already in your PATH)

cd pentaho-kettle

进入每个项目(突出显示的红色,除了 pentaho-kettle 项目)目录并执行

enter to each projects (highlighted red, except pentaho-kettle project) directories and execute

ant clean-all resolve create-dot-classpath

刷新eclipse中的项目.

refresh projects in eclipse.

注意:不要在pentaho-kettle目录命令中执行

Note: do not execute in pentaho-kettle directory command

ant clean-all resolve create-dot-classpath

它将清除子项目中的所有库,并且您必须从头开始.

It will erase all libraries in subprojects and u will have to start from beginning.

您完成了.现在,在Eclipse中启动/调试水壶(运行配置 pentaho-kettle 中的项目可用)

You are done. Now start/debug kettle in eclipse (item in Run Configuration pentaho-kettle will be available)

图像上的某些项目以蓝色突出显示,它们用在pentaho-kettle中(我想它们应该被预先编译为pentaho-kettle/lib中的jar文件,但是ivy脚本没有下载它们,也没有将它们添加到pentaho-kettle项目的类路径.Eclipse将报告缺少一些一些".我只是从github中手动将它们检出为单独的项目(尊重版本),并将它们添加到构建路径中的pentaho-kettle项目选项

Some of projects on image highlighted blue, they are used in pentaho-kettle (I think they suppose to be precompiled as jar files in pentaho-kettle/lib but ivy script didn't download them and didn't add them to pentaho-kettle project classpath. Eclipse will report "Some of classes are missing". I just checked them out from github manually as separate project (respect version) and add them to pentaho-kettle project in build path options

就这样.

这篇关于克隆并建立Pentaho水壶的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆