PDA

View Full Version : Compiling/Building Pentaho with Eclipse



gbutler69
01-11-2013, 03:25 PM
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/ServerDoc2x/Build+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-commons-gwt-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

virgilio
06-13-2013, 08:28 AM
did you work it out?
same problem following http://wiki.pentaho.com/display/ServerDoc2x/Build+the+projects
virgilio

Taqua
06-14-2013, 04:35 AM
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.

virgilio
06-14-2013, 06:48 AM
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/ServerDoc2x/03.+Checking+Out+and+Building+Projects+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

virgilio
06-18-2013, 08:08 AM
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

Taqua
06-18-2013, 08:31 AM
The repository does not contain a GA jar. It does contain a stable jar:

http://repository.pentaho.org/artifactory/webapp/search/artifact?q=pentaho-bi-platform-plugin-services-4.5

virgilio
06-18-2013, 08:46 AM
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/repo/net.sourceforge.nekohtml/nekohtml/0.9.5/nekohtml-0.
9.5.ivy.xml
[ivy:resolve] ==== pentaho-mvn: tried
[ivy:resolve] http://repo.pentaho.org/artifactory/repo/net/sourceforge/nekohtml/nekohtml/0.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/repo/net/sourceforge/nekohtml/nekohtml/0.9.5/nekohtml-0.
9.5.jar
[ivy:resolve] ==== public: tried
[ivy:resolve] http://repo1.maven.org/maven2/net/sourceforge/nekohtml/nekohtml/0.9.5/nekohtml-0.9.5.pom
[ivy:resolve] -- artifact net.sourceforge.nekohtml#nekohtml;0.9.5!nekohtml.jar:
[ivy:resolve] http://repo1.maven.org/maven2/net/sourceforge/nekohtml/nekohtml/0.9.5/nekohtml-0.9.5.jar
[ivy:resolve] ==== java-net-maven2: tried
[ivy:resolve] http://download.java.net/maven/2/net/sourceforge/nekohtml/nekohtml/0.9.5/nekohtml-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/sourceforge/nekohtml/nekohtml/0.9.5/nekohtml-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/sourceforge/nekohtml/nekohtml/ contains version 1.9.9 and above...



Should I try upgrading the dependency?

Virgilio

virgilio
06-21-2013, 04:47 AM
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