Hitachi Vantara Pentaho Community Forums
Results 1 to 4 of 4

Thread: HELP:Problem Compiling Pentaho 4.5.0-stable

  1. #1
    Join Date
    Jul 2012
    Posts
    24

    Angry HELP:Problem Compiling Pentaho 4.5.0-stable

    Hi everyone,
    I tried to compile the entire pentaho platform (4.8.0-stable) without any success.
    Now I'm trying to compile the 4.5.0-stabble versions

    It's few weeks that I have compilation and ivy resolve errors. So I'll be very happy if someone that done this in the past can kindly help me.
    I shall be crazy behind this problem.

    I folowed the guide on this link:
    http://wiki.pentaho.com/display/Serv...rojects+in+2.0


    I download the 4.5.0-stable trunk from pentaho svn repository:

    I have the folowing project in eclipse:


    • bi-platform-api
    • bi-platform-appserver
    • bi-platform-assembly
    • bi-platform-build
    • bi-platform-engine-core
    • bi-platform-engine-security
    • bi-platform-engine-services
    • bi-platform-legacy
    • bi-platform-plugin-actions
    • bi-platform-plugin-services
    • bi-platform-repository
    • bi-platform-sample-data
    • bi-platform-sample-solution
    • bi-platform-scheduler
    • bi-platform-security-userroledao
    • bi-platform-test-foundation
    • bi-platform-ui-foundation
    • bi-platform-util
    • bi-platform-web
    • bi-platform-web-portlet
    • bi-platform-web-servlet
    • echo-plugin
    • gecho-plugin
    • mantle
    • test-solutions
    • webservices-adapter-plugin



    I started from the top of the list, and i did ant resolve on build.xml to retreive all jars. After that I add all jar in the /lib folder to the build path and for the first project: bi-platform-api everythink works fine.

    But when I try to do the same in the other project bi-platform-appserver I have an error during the ant resolve command because Ivy is not able to resolve this dependency:


    Code:

    [ivy:resolve] :::: WARNINGS
    [ivy:resolve] module not found: janino#janino;2.5.x
    [ivy:resolve] ==== local: tried
    [ivy:resolve] C:\Users\Gaetano\.ivy2/local/janino/janino/2.5.x/ivys/ivy.xml
    [ivy:resolve] -- artifact janino#janino;2.5.x!janino.jar:
    [ivy:resolve] C:\Users\Gaetano\.ivy2/local/janino/janino/2.5.x/jars/janino-2.5.x.jar
    [ivy:resolve] ==== pentaho-ivy: tried
    [ivy:resolve] http://repo.pentaho.org/artifactory/...-2.5.x.ivy.xml
    [ivy:resolve] ==== pentaho-mvn: tried
    [ivy:resolve] http://repo.pentaho.org/artifactory/...nino-2.5.x.pom
    [ivy:resolve] ==== public: tried
    [ivy:resolve] http://repo1.maven.org/maven2/janino...nino-2.5.x.pom
    [ivy:resolve] -- artifact janino#janino;2.5.x!janino.jar:
    [ivy:resolve] http://repo1.maven.org/maven2/janino...nino-2.5.x.jar
    [ivy:resolve] ==== java-net-maven2: tried
    [ivy:resolve] http://download.java.net/maven/2/jan...nino-2.5.x.pom
    [ivy:resolve] -- artifact janino#janino;2.5.x!janino.jar:
    [ivy:resolve] http://download.java.net/maven/2/jan...nino-2.5.x.jar
    [ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
    [ivy:resolve] :: UNRESOLVED DEPENDENCIES ::
    [ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
    [ivy:resolve] :: janino#janino;2.5.x: not found
    [ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
    [ivy:resolve]
    [ivy:resolve] :::: ERRORS
    [ivy:resolve] impossible to acquire lock for janino#janino;2.5.x
    [ivy:resolve] impossible to acquire lock for janino#janino;2.5.x
    [ivy:resolve] impossible to acquire lock for janino#janino;2.5.x
    [ivy:resolve] impossible to acquire lock for janino#janino;2.5.x
    [ivy:resolve] impossible to acquire lock for janino#janino;2.5.x
    [ivy:resolve] impossible to acquire lock for janino#janino;2.5.x
    [ivy:resolve] impossible to acquire lock for janino#janino;2.5.x


    my questions are:


    Why I have these kind of exceptions?
    Is there a specific order to ant resolve and ant build the projects?
    It's correct this kind of procedure for building

    Could someone that did this before me help me?

    I'm going to be crazy about but I fear that Pentaho-ce is opensource but impossible to compile, debug and modify. So that means it is quite closed source.
    Sorry for this mine supposition but I really hope this my idea is wrong.


    Please help me!


    Best regards Gaetano.


    PS: I'm using Java JRE 1.6
    Eclipse Indigo Java EE IDE
    Ant 1.8.4
    Ivy 2.0.0.jar
    SubEclipse Plugin

  2. #2
    Join Date
    Dec 2009
    Posts
    609

    Default

    Hi Gaetano,

    calm down, Pentaho compiles successfully. Only starting with it is difficult
    As ivy tells you that some locks could not be aquired, I assume your ivy-cache to be locked somehow.
    Search for *lck* files in your ivy-cache folder and remove them after assuring that currently no build-processes are running.

    e.g.: http://repo.pentaho.org/artifactory/.../janino/2.5.x/ works allright for me.
    So the dependency is resolvable if your ivy-cache would work properly.

    Cheers,

    Tom

  3. #3
    Join Date
    Jul 2012
    Posts
    24

    Default

    @TomS
    Thank you very much, you are so kind. I solved, your suggestion resolve my problem.


    Could I ask you something?
    I did the assembly command on the bi-platform-assembly and this made a complete build version of pentaho-ce.
    My question is:
    Does the assembly command use my code(for module that is in my eclipse workspace) assembly the platform?
    For example if I will modify the mantle module and I will redo the assemble Will I found the relative changes in the build version? Is there any risk that the assembly command assemble code from repository?
    Sorry, maybe this question could be appear quite stupid but I have no clear idea how does the assemble command works, and because during the assembly process it downloaded a lot of think this made me think that use code from remote repository.


    Let me know your experience about
    Thanks you very much, you are so kind.
    King regards
    Gaetano

  4. #4
    Join Date
    Dec 2009
    Posts
    609

    Default

    Hi Gaetano,

    I assume you downloaded the Platform-sources.
    So as soon as you will directly modify these sources and build the platform, your changes will be taken into account unless you download (=overwrite) the sources again.
    However, there still is another approach for having customized parts of the BI-Platform: the "Community Build Framework" (short: "CBF")
    I do not know if it supports customized Source-Parts, but it does support customized Mantle- and solution files.
    There is a nice introduction to CBF in the forums: http://forums.pentaho.com/showthread...-0-and-CBF-5-1
    and the main page is to be found here: http://www.webdetails.pt/ctools/cbf.html

    Cheers,

    Tom

Tags for this Thread

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.