Friday, November 09, 2012

Hackergarten day: hacking Drools Planner (Antwerp, Tuesday)

If you're near Antwerp this Tuesday (13th Nov 2012), join us at the Hackergarten day (free entrance) at Devoxx between 9:30am - 6:30pm. We 'll be hacking Drools Planner and many other open source projects (hibernate, arquillian, ...).

Bring your laptop and sit shoulder-to-shoulder with other open source developers. We'll guide you in creating pull requests and proof of concepts.

If you're interested in hacking Planner, but don't know what to do yet, here's a list of suggestions:
  • Create a new build-in ScoreDefinition (1-2 hours)
  • Improve the benchmarker report (1 hour per improvement)
  • Create an example for Portfolio optimization (full day)
Unlike most of Devoxx, the entrance is free. Hackergarten will take place in the two extra rooms (Area 1 & 2, each approx. 50m2) on the exhibition floor of Devoxx (not in the BOF rooms). So if you want to get your hands dirty, join us (except of course between 5:25 and 5:55 when you should come to my Devoxx presentation on Maven Dependency Puzzlers :).

Preparation

There's a good network, but the Devoxx crowd never fails to slow it down. So avoid waiting for your downloads to finish and set up your environment at home:

Set up Git and clone drools-planner from GitHub (or alternatively, download the zipball):
$ git clone https://github.com/droolsjbpm/drools-planner.git
...

Then do a Maven 3 build:
$ cd drools-planner
$ mvn -DskipTests clean install
...

Try running the examples directly from the command line:
$ cd drools-planner-examples
$ mvn exec:exec
...
Next, open the drools-planner/pom.xml file with your favorite IDE (IntelliJ, Eclipse, NetBeans).

10 comments:

  1. Fails on osx with java7 in examples exec:exec:

    [INFO] ------------------------------------------------------------------------
    [INFO] Building Drools Planner examples 6.0.0-SNAPSHOT
    [INFO] ------------------------------------------------------------------------
    [WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, no dependency information available
    [WARNING] Failed to retrieve plugin descriptor for org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0
    [INFO]
    [INFO] --- exec-maven-plugin:1.2:exec (default-cli) @ drools-planner-examples ---
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 16.701s
    [INFO] Finished at: Fri Nov 09 10:42:09 CET 2012
    [INFO] Final Memory: 15M/188M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2:exec (default-cli) on project drools-planner-examples: Command execution failed. Cannot run program "${JAVA_HOME}/bin/java" (in directory "/Users/erics/git-projects/drools-planner/drools-planner-examples"): error=2, No such file or directory -> [Help 1]
    [ERROR]
    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [ERROR]
    [ERROR] For more information about the errors and possible solutions, please read the following articles:
    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

    ReplyDelete
  2. @eric Fixed, thanks for reporting!

    The problem was the "mvn exec:exec" command required $JAVA_HOME to be set. Now it no longer does.

    ReplyDelete
  3. I get this error :

    [WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, no dependency information available
    [WARNING] Failed to retrieve plugin descriptor for org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0
    [INFO]
    [INFO] --- exec-maven-plugin:1.2.1:exec (default-cli) @ jbpm-examples ---
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 2.173s
    [INFO] Finished at: Mon Nov 12 18:11:56 CET 2012
    [INFO] Final Memory: 13M/81M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (default-cli) on project jbpm-examples: The parameters 'executable' for goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec are missing or invalid -> [Help 1]

    ReplyDelete
  4. How did this event go?

    I really wanted to be there but had prior commitments.

    Is it possible to see portfolio optimization project?

    Did the participants find it worthwhile / interesting?

    ReplyDelete
  5. @CharlesMoulliard Looks like you cd'ed into the wrong directory because it says "on project jbpm-examples". In the directory drools-planner/drools-planner-examples it should work.

    ReplyDelete
  6. @Magicki It was a very interesting event: we were with about 20 projects and about 40 people. With so many project leads in the same room, interesting integration discussions happened (some with a prototype at the end of the day, for example the arquillian gradle plugin).
    Personally, I ended experimenting with Ceylon (just for fun), demo'ing Planner, discussing Planner's roadmap and discussing how to use Drools and/or Planner to filter/optimize arquillian test runs.

    ReplyDelete
  7. Hi,

    I need to know that whether DROOLS-5.5.0.FINAL and JBPM5.4.0.Final works well with JAVA7. I need to deploy following with JAVA7 environment for my web application,
    1. drools guvnor 5.5.0.Final
    2. designer 2.4
    3. form builder
    4. JBPM 5.4.0.Final

    ReplyDelete
  8. Interested in hacking +Drools Planner or other open source projects? ... Drools & jBPM: Hackergarten day: hacking Drools Planner (Antwerp, ... coaster ville game

    ReplyDelete
  9. I tried to do a Maven 3 build but something went wrong, hacking Planner is not an easy task and I could not finish the third step to be able to do this. I saw on http://www.trendmicro.com/us/enterprise/security-risk-management/deep-discovery/index.html interesting methods on how to have the best security on mobile devices, can this work on securing Planner and Arquillian?

    ReplyDelete