Hitachi Vantara Pentaho Community Forums
Results 1 to 8 of 8

Thread: Compiling/Building Pentaho with Eclipse

  1. #1
    Join Date
    Oct 2009
    Posts
    3

    Default Compiling/Building Pentaho with Eclipse

    I've installed the latest Juno release of Eclipse, IvyDE, and EGIt from the Eclipse marketplace. I've downloaded the the projects from Git according to these instructions: http://wiki.pentaho.com/display/Serv...d+the+projects.

    I used the following Git URL's from that page: https://github.com/pentaho/pentaho-platform.git and https://github.com/pentaho/pentaho-c...wt-modules.git.

    After downloading and installing, Ivy keeps saying it is not able to resolve everything. It spends time doing a lot of resolution and does download a bunch of jars, etc, but, then says that it couldn't resolve everything. Where do I start?

    This is the error that Ivy displays when it tries to resolve everything:

    Some projects fail to be resolved
    Impossible to resolve dependencies of ${ivy.artifact.group}#${ivy.artifact.id};${project.revision}
    unresolved dependency: pentaho#pentaho-xul-core;${dependency.pentaho-xul.revision}: not found
    unresolved dependency: pentaho#pentaho-versionchecker;${dependency.pentaho-versionchecker.revision}: not found
    unresolved dependency: pentaho#pentaho-connections;${dependency.pentaho-connections.revision}: not found
    unresolved dependency: pentaho#pentaho-actionsequence-dom;${dependency.pentaho-actionsequence-dom.revision}: not found
    unresolved dependency: pentaho#pentaho-metadata;${dependency.pentaho-metadata.revision}: not found
    unresolved dependency: pentaho#pentaho-platform-api;${project.revision}: not found
    Impossible to resolve dependencies of pentaho#pentaho-gwt-widgets;TRUNK-SNAPSHOT
    unresolved dependency: com.thoughtworks.xstream#xstream;${dependency.xstream.revision}: not found
    unresolved dependency: pentaho#pentaho-versionchecker;${dependency.pentaho-versionchecker.revision}: not found
    unresolved dependency: ${dependency.reporting-engine.group}#pentaho-reporting-engine-classic-extensions-hibernate;${dependency.pentaho-reporting.revision}: not found
    unresolved dependency: ${dependency.reporting-engine.group}#pentaho-reporting-engine-classic-core;${dependency.pentaho-reporting.revision}: not found
    unresolved dependency: ${dependency.reporting-engine.group}#pentaho-reporting-engine-classic-extensions-mondrian;${dependency.pentaho-reporting.revision}: not found
    unresolved dependency: jfree#jfreechart;${dependency.jfreechart.revision}: not found
    unresolved dependency: ${dependency.reporting-engine.group}#pentaho-reporting-engine-classic-extensions-sampledata;${dependency.pentaho-reporting.revision}: not found
    unresolved dependency: ${dependency.reporting-engine.group}#pentaho-reporting-engine-classic-extensions;${dependency.pentaho-reporting.revision}: not found
    unresolved dependency: pentaho#pentaho-xul-html;${dependency.pentaho-xul.revision}: not found
    unresolved dependency: com.tonbeller#wcf;${dependency.wcf.revision}: not found
    unresolved dependency: org.json#json;${dependency.json.revision}: not found
    unresolved dependency: ${dependency.reporting-engine.group}#pentaho-reporting-engine-legacy-charts;${dependency.pentaho-reporting.revision}: not found
    unresolved dependency: pentaho#pentaho-chartbeans;${dependency.pentaho-chartbeans.revision}: not found
    unresolved dependency: pentaho#pentaho-hadoop-hive-jdbc-shim;${dependency.pentaho-hadoop-hive-jdbc-shim.revision}: not found
    unresolved dependency: pentaho#mondrian;${dependency.mondrian.revision}: not found
    unresolved dependency: ${dependency.reporting-engine.group}#pentaho-reporting-engine-classic-extensions-kettle;${dependency.pentaho-reporting.revision}: not found
    unresolved dependency: pentaho#pentaho-xul-core;${dependency.pentaho-xul.revision}: not found
    unresolved dependency: pentaho#pentaho-connections;${dependency.pentaho-connections.revision}: not found
    unresolved dependency: pentaho#pentaho-metadata;${dependency.pentaho-metadata.revision}: not found
    unresolved dependency: pentaho-kettle#kettle-db;${dependency.kettle.revision}: not found
    unresolved dependency: com.tonbeller#jpivot;${dependency.jpivot.revision}: not found
    unresolved dependency: pentaho-kettle#kettle-engine;${dependency.kettle.revision}: not found
    unresolved dependency: ${dependency.reporting-engine.group}#pentaho-reporting-engine-classic-extensions-drill-down;${dependency.pentaho-reporting-extension-drilldown.revision}: not found
    unresolved dependency: pentaho#pentaho-report-wizard-core;${dependency.pentaho-report-wizard-core.revision}: not found
    unresolved dependency: ${dependency.reporting-engine.group}#pentaho-reporting-engine-classic-extensions-toc;${dependency.pentaho-reporting.revision}: not found
    unresolved dependency: pentaho-kettle#kettle-core;${dependency.kettle.revision}: not found
    unresolved dependency: ${dependency.reporting-engine.group}#pentaho-reporting-engine-classic-extensions-reportdesigner-parser;${dependency.pentaho-reporting.revision}: not found
    unresolved dependency: org.codehaus.jettison#jettison;${dependency.jettison.revision}: not found
    unresolved dependency: pentaho#pentaho-actionsequence-dom;${dependency.pentaho-actionsequence-dom.revision}: not found
    unresolved dependency: ${dependency.reporting-engine.group}#pentaho-reporting-engine-classic-extensions-pmd;${dependency.pentaho-reporting.revision}: not found
    unresolved dependency: ${dependency.reporting-engine.group}#pentaho-reporting-engine-classic-extensions-olap4j;${dependency.pentaho-reporting.revision}: not found
    unresolved dependency: ${dependency.reporting-engine.group}#pentaho-reporting-engine-legacy-functions;${dependency.pentaho-reporting.revision}: not found
    unresolved dependency: ${dependency.reporting-engine.group}#pentaho-reporting-engine-classic-extensions-scripting;${dependency.pentaho-reporting.revision}: not found
    unresolved dependency: ${dependency.reporting-engine.group}#pentaho-reporting-engine-wizard-core;${dependency.pentaho-reporting.revision}: not found
    unresolved dependency: ${dependency.reporting-engine.group}#pentaho-reporting-engine-classic-extensions-xpath;${dependency.pentaho-reporting.revision}: not found
    Last edited by gbutler69; 01-11-2013 at 03:36 PM.

  2. #2
    Join Date
    Oct 2010
    Posts
    28

    Default

    did you work it out?
    same problem following http://wiki.pentaho.com/display/Serv...d+the+projects
    virgilio

  3. #3
    Join Date
    Mar 2003
    Posts
    8,085

    Default

    This looks as if IvyDE does NOT resolve the projects properly, as it did not replace the placeholders with variable names.

    Well, you can always go down to the command line and invoke "ant resolve" to get the jars. That is guaranteed to work. Apart from that, at least for reporting, I do recommend using IntelliJ, as Eclipse cannot handle modules with dependencies to each other in a sane way. I never got it to work reliably, while IntelliJ is fine out of the box.
    Get the latest news and tips and tricks for Pentaho Reporting at the Pentaho Reporting Blog.

  4. #4
    Join Date
    Oct 2010
    Posts
    28

    Default

    Thank you for your reply
    actually I managed to have IVY resolve by putting a reference to the build.properties as described in the COMMENTS to http://wiki.pentaho.com/display/Serv...rojects+in+2.0


    >>> I too seemed to need to edit each "ivysettings.xml" file in each project and add the line: <properties file="./build.properties"/>


    But then I got some resolve errors (no data) similar to https://issues.apache.org/jira/browse/IVY-379 but I'm using the newest ivy available...


    So I turned to ant...
    ant resolve works fine!
    ant build stops with lots of errors, their origin is
    >>> compile.compile:
    >>> ...... ^
    >>> [javac] D:\pentaho-platform-plugin-reporting\src\org\pentaho\reporting\platform\plugin\ParameterXmlContent
    >>> Handler.java:79: error: package org.pentaho.reporting.libraries.formula does not exist
    >>> [javac] import org.pentaho.reporting.libraries.formula.DefaultFormulaContext;


    I'm really puzzled.. I'll give a try to IntelliJ but I wonder how do Pentaho people actually compile...


    open-but-not-compile-source :-)


    virgilio

  5. #5
    Join Date
    Oct 2010
    Posts
    28

    Default

    Just to let you know how it's going on
    I abandoned Eclipse and reverted to plain ant

    I completely get rid of ant, mave, ivy and eclipse settings and repos in my home folder
    downloaded the source from git (without cloning but this shouldn't matter a lot)
    and run an "ant clean build -v"

    With trunk everything goes fine
    With tag 4.5.0-GA I get
    [ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
    [ivy:resolve] :: UNRESOLVED DEPENDENCIES ::
    [ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
    [ivy:resolve] :: pentaho#pentaho-bi-platform-plugin-services;4.5.0-GA: not found
    [ivy:resolve] :: pentaho#pentaho-bi-platform-plugin-actions;4.5.0-GA: not found
    [ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::

    stay tuned

    virgilio

  6. #6
    Join Date
    Mar 2003
    Posts
    8,085

    Default

    The repository does not contain a GA jar. It does contain a stable jar:

    http://repository.pentaho.org/artifa...n-services-4.5
    Get the latest news and tips and tricks for Pentaho Reporting at the Pentaho Reporting Blog.

  7. #7
    Join Date
    Oct 2010
    Posts
    28

    Default

    Ok so I should use the -stable tag

    I go to git and download 4.5-stable
    Then I run "ant clean build -v" and get

    [ivy:resolve] :::: WARNINGS
    [ivy:resolve] module not found: net.sourceforge.nekohtml#nekohtml;0.9.5
    [ivy:resolve] ==== local: tried
    [ivy:resolve] d:\Cineca\Profili\vpierini\.ivy2/local/net.sourceforge.nekohtml/nekohtml/0.9.5/ivys/ivy.xml
    [ivy:resolve] -- artifact net.sourceforge.nekohtml#nekohtml;0.9.5!nekohtml.jar:
    [ivy:resolve] d:\Cineca\Profili\vpierini\.ivy2/local/net.sourceforge.nekohtml/nekohtml/0.9.5/jars/nekohtml
    -0.9.5.jar
    [ivy:resolve] ==== pentaho-ivy: tried
    [ivy:resolve] http://repo.pentaho.org/artifactory/...9.5/nekohtml-0.
    9.5.ivy.xml
    [ivy:resolve] ==== pentaho-mvn: tried
    [ivy:resolve] http://repo.pentaho.org/artifactory/...9.5/nekohtml-0.
    9.5.pom
    [ivy:resolve] -- artifact net.sourceforge.nekohtml#nekohtml;0.9.5!nekohtml.jar:
    [ivy:resolve] http://repo.pentaho.org/artifactory/...9.5/nekohtml-0.
    9.5.jar
    [ivy:resolve] ==== public: tried
    [ivy:resolve] http://repo1.maven.org/maven2/net/so...html-0.9.5.pom
    [ivy:resolve] -- artifact net.sourceforge.nekohtml#nekohtml;0.9.5!nekohtml.jar:
    [ivy:resolve] http://repo1.maven.org/maven2/net/so...html-0.9.5.jar
    [ivy:resolve] ==== java-net-maven2: tried
    [ivy:resolve] http://download.java.net/maven/2/net...html-0.9.5.pom
    [ivy:resolve] -- artifact net.sourceforge.nekohtml#nekohtml;0.9.5!nekohtml.jar:
    [ivy:resolve] http://download.java.net/maven/2/net...html-0.9.5.jar
    [ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
    [ivy:resolve] :: UNRESOLVED DEPENDENCIES ::
    [ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
    [ivy:resolve] :: net.sourceforge.nekohtml#nekohtml;0.9.5: not found
    [ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::

    actually http://repo1.maven.org/maven2/net/so...html/nekohtml/ contains version 1.9.9 and above...



    Should I try upgrading the dependency?

    Virgilio

  8. #8
    Join Date
    Oct 2010
    Posts
    28

    Default

    ok, now it works

    I used git, the 4.5.0-stable tag and command line ant
    Initial errors were solved by deleting the .ivy2 cache

    now it compiles!!!
    hope this might help somebody else

    virgilio

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.