Hitachi Vantara Pentaho Community Wiki
Child pages
  • 03. Checking Out and Building Projects in 5.0
Skip to end of metadata
Go to start of metadata

Checking Out and Building Projects in 5.0

This Step's Objective

This step details getting the platform projects from Github and resolving project dependencies and build issues. At the end of this step, you should have all the platform projects checked out and building successfully.

Checking Out: Get the Latest Code

Pentaho is in the process of transitioning from Subversion to Git as our source code repository. At this point, the BI Platform has been migrated to github.

Forking Github Repositories

All Pentaho Git projects are hosted up on GitHub at: https://github.com/pentaho. Follow the directions in the links below to create a GitHub account and fork the Pentaho Platform master repository at https://github.com/pentaho/pentaho-platform:
Create an Account
Fork a Repo

Eclipse Setup with EGit (IntelliJ Setup)

  1. Install EGit from marketplace
  2. Restart Eclipse
  3. Right click on the project explorer pane
  4. Select Import -> Import...
  5. Expand Git folder and select Projects from Git
  6. Select URI
  7. Paste in the URI that Github gives you for your fork of the project
  8. Fill in the rest of the information as necessary
  9. Select to import existing projects
  10. Confirm that projects show up
  11. Select finish

Building in Eclipse

Run ant resolve on each project (except pentaho-platform-assembly) in order to gather its dependencies

  1. Right click on the build.xml file in the Project View, select Run As -> Ant Build...
  2. Uncheck all initially selected targets
  3. Check the Sort targets option for easier location
  4. Select the resolve target
  5. Verify that the Target execution order field reads: resolve
  6. Select Apply
  7. Select Run
  8. Select the project in the Project Explorer and hit F5 to refresh

Setup build path

  1. Setup the pentaho-platform-api project
  2. Right click on pentaho-platform-api project
    1. Select properties
    2. Select Java Build Path
    3. Select Libraries Tab
    4. Select Add Jars
    5. Expand pentaho-platform-api folder
    6. Expand lib folder
    7. Click Jar at top of list
    8. Scroll to bottom of list
    9. Hold shift and click bottom jar to select all jars in lib folder
    10. Select OK
    11. Select OK
    12. Verify that no errors exist in pentaho-platform-api project
  3. Follow steps above to add all jars from lib and test-lib to pentaho-platform-core project build path
  4. Follow steps above to add all jars from lib and test-lib to pentaho-platform-extensions project build path
    • xml files shouldn't be added as jars. Eclipse will complain about libsparkline-TRUNK-SNAPSHOT.ivy.xml, just remove it from the list
  5. Follow steps above to add all jars from lib and test-lib to pentaho-platform-repository project build path
  6. Set up pentaho-platform-repository project
    • Follow steps above to add all jars from lib and test-lib to pentaho-platform-scheduler project build path
    • Remove old projects from classpath
      1. Right click on pentaho-platform-scheduler project
      2. Select properties
      3. Select Java Build Path
      4. Select Projects tab
      5. Remove all projects
  7. Set up pentaho-user-console project
    • Remove existing jar entries from project build path
      1. Right click on pentaho-user-console project
      2. Select properties
      3. Select Java Build Path
      4. Select Libraries Tab
      5. Remove all jars (DON'T REMOVE Libraries!!)
    • Follow steps above to add all jars from codegen-lib, test-lib, and war to pentaho-user-console project build path
    • Remove all jars that end with "-sources.jar" from pentaho-user-console build path
    • Remove pentaho-user-console-TRUNK-SNAPSHOT.jar from pentaho-user-console build path
  • No labels

4 Comments

  1. user-ba474

    i have cloned github repository after tht i have created the following projects.

    pentaho-platform-api

    pentaho-platform-core

    pentaho-platform-extensions

    pentaho-platform-repository

    pentaho-user-console

    but i am not able to add jar files in build path because cloned repository folder "pentaho-platform" doesnt contain any folder like jar.

    if any one knows how to build it then please let me know.

    Regards.

    Mateen.

  2. user-35e33

    Hi Marteen,

    You should run build.xml first (at step Run ant resolve on each project... ) and then refresh the projects. You will see jar files in lib folder

    Regards,

    Thao

  3. user-dcfac

    Thanks, i will check

    Regards,

    Mateen

  4. user-b65cb

    Hi I was trying to build pentaho-platform. I followed the steps provided but getting error due to some reason:

    [ivy:resolve] :: org.springframework#spring-context;2.5.6: not found
    [ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
    [ivy:resolve] 
    [ivy:resolve] :::: ERRORS
    [ivy:resolve] impossible to acquire lock for org.springframework#spring-context;2.5.6
    [ivy:resolve] impossible to acquire lock for org.springframework#spring-context;2.5.6
    [ivy:resolve] impossible to acquire lock for org.springframework#spring-context;2.5.6
    [ivy:resolve] impossible to acquire lock for org.springframework#spring-context;2.5.6
    [ivy:resolve] impossible to acquire lock for org.springframework#spring-context;2.5.6
    [ivy:resolve] impossible to acquire lock for org.springframework#spring-context;2.5.6
    [ivy:resolve] impossible to acquire lock for org.springframework#spring-context;2.5.6
    [ivy:resolve] :: org.springframework#spring-context;2.5.6: not found

    ---

    [ivy:resolve] impossible to acquire lock for org.springframework#spring-context;2.5.6

    What is the resolution?