kettle 8 compiled source code (simple version)

In the process of exploring kettle, how can you enjoy it without running the source code? The previous article used some jar packages, which can also be obtained from the compiled zip package.

Reference:
Copyright statement: This article is an original article by CSDN blogger "ifu25" and follows the CC 4.0 BY-SA copyright agreement. Please attach the original source link and this statement when reprinting.
Original link: https://blog.csdn.net/ifu25/article/details/103239489

1. Environmental requirements

Reference link

2. Source code/file download

​ Kettle warehouse location: https://github.com/pentaho/pentaho-kettle (the download problem can be solved by yourself)

​ This compilation branch: 8.3.0.0-R

​ Configuration file (settings): https://raw.githubusercontent.com/pentaho/maven-parent-poms/master/maven-support-files/settings.xml (provided by github)

3. Import and run the source code

  1. Open idea Click open

Please add image description

2. Find the source code directory and click OK to open it.

Please add image description

  1. Don’t forget to configure the maven environment and kettle settings file

Please add image description

  1. Project loading (takes longer)

Please add image description

  1. As shown in the picture after completion

Please add image description

4. Compile and package

1. Compile through the Terminal of the idea, but I will get an error halfway through compilation, so I directly compile and run the command mvn clean install -DskipTests in the background (it will take a long time to package after running. If there is a failure, it is most likely a network problem. You can run it. command retry)

Please add image description

2. After successful compilation, the packaging file is here <source directory>\assemblies\pdi-ce\target\pdi-ce-8.3.0.0-SNAPSHOT.zip

Please add image description

5.debug debugging

  1. Find the startup method org/pentaho/di/ui/spoon/Spoon.java to start
  2. The startup will fail here, but idea will add the startup class to the toolbar startup item
    Please add image description
  3. Click Configure Startup Items

Please add image description

  1. Add vm options -Djava.ext.dirs="lib" , append dist after Working directory

Please add image description
Please add image description

  1. document

    1. Create a new directory dist under the source code directory (that is, the directory just configured)

    2. Place the ui directory in the previously compiled zip package directly under dist

    3. Place the jar in the lib directory in the zip under the source code directory \lib\ (if there is still something missing, go to the lib directory under the zip to get it and put it here, such as database driver package, third-party tool package, system development kit)

      jar: dom4j-2.1.1.jar,jaxen-1.1.6.jar,slf4j-api-1.7.7.jar

    4. If there is a custom plug-in, create a new directory plugins in dist and put the custom plug-in in it.

Please add image description

  1. Start, kill easily

Please add image description

6. Common startup errors:

1. See reference link

Guess you like

Origin blog.csdn.net/weixin_43889494/article/details/132211256