JavaDude's Groovy Snippets

January 3, 2010

Building Groovy XML-RPC library 0.5

Filed under: Groovy Tutorial — admin @ 8:26 pm

The current release is 0.4 (groovy-xmlrpc-0.4.jar). The actual codebase also supports basic authorization (link), but this version 0.5 was not released yet due to the failing junit test.

In this tutorial we will build the library from the codebase. Using Netbeans we have all the tool we need to achieve this easily.

Tutorial:

  1. Start Netbeans. Team | Subversion | Checkout..
    Enter http://svn.codehaus.org/groovy/trunk/groovy/modules/xmlrpc/ and a local directory

    SVN

    SVN

    1. ==[IDE]== Jan 2, 2010 8:55:32 PM Checking out...
    2. co -r HEAD http://svn.codehaus.org/groovy/trunk/groovy/modules/xmlrpc /media/NEXUSII/GroovyAndGrails/GroovyBuildNB/xmlrpc --config-dir /home/sven/.netbeans/6.8/config/svn/config --non-interactive
    3. A /media/NEXUSII/GroovyAndGrails/GroovyBuildNB/xmlrpc/repository
    4. A /media/NEXUSII/GroovyAndGrails/GroovyBuildNB/xmlrpc/repository/jivesoftware
    5. A /media/NEXUSII/GroovyAndGrails/GroovyBuildNB/xmlrpc/repository/jivesoftware/smackx
    6. A /media/NEXUSII/GroovyAndGrails/GroovyBuildNB/xmlrpc/repository/jivesoftware/smackx/3.0.1
    7. A /media/NEXUSII/GroovyAndGrails/GroovyBuildNB/xmlrpc/repository/jivesoftware/smackx/3.0.1/smackx-3.0.1.jar.md5
    8. A /media/NEXUSII/GroovyAndGrails/GroovyBuildNB/xmlrpc/repository/jivesoftware/smackx/3.0.1/smackx-3.0.1.jar
    9. A /media/NEXUSII/GroovyAndGrails/GroovyBuildNB/xmlrpc/repository/jivesoftware/smack
    10. A /media/NEXUSII/GroovyAndGrails/GroovyBuildNB/xmlrpc/repository/jivesoftware/smack/3.0.1
    11. A /media/NEXUSII/GroovyAndGrails/GroovyBuildNB/xmlrpc/repository/jivesoftware/smack/3.0.1/smack-3.0.1.jar
    12. A /media/NEXUSII/GroovyAndGrails/GroovyBuildNB/xmlrpc/repository/jivesoftware/smack/3.0.1/smack-3.0.1.jar.md5
    13. A /media/NEXUSII/GroovyAndGrails/GroovyBuildNB/xmlrpc/.classpath
    14. A /media/NEXUSII/GroovyAndGrails/GroovyBuildNB/xmlrpc/.project
    15. A /media/NEXUSII/GroovyAndGrails/GroovyBuildNB/xmlrpc/src
    16. ...
  2. Build the library (right click on the project and Build)
    Build   
    1. NetBeans: Executing 'mvn -Dnetbeans.execution=true install'
    2. NetBeans: JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.16
    3. Scanning for projects...
    4. Building Groovy XML-RPC
    5. task-segment: [install]...
    6. Installing /media/NEXUSII/GroovyAndGrails/GroovyBuildNB/xmlrpc/target/groovy-xmlrpc-0.5.0-SNAPSHOT.jar to /home/sven/.m2/repository/org/codehaus/groovy/groovy-xmlrpc/0.5.0-SNAPSHOT/groovy-xmlrpc-0.5.0-SNAPSHOT.jar
    7. BUILD SUCCESSFULTotal time: 9 seconds
    8. Finished at: Sat Jan 02 21:34:59 CET 2010Final Memory: 25M/137M
  3. Download missing dependencies
    Eventually some libraries are missing, Netbeans will remind you. (Just press download)

    Dependency Problems

In part 2 we will use the library to access TRAC via XML-RPC.

    1 Comment

    1. [...] Remark: At the time of this entry version 0.6 is not released yet. Check for availability at repository.codehaus.org/org/codehaus/groovy/groovy-xmlrpc/ for the new version or update your svn copy and build by yourself (see blog entry) [...]

      Pingback by JavaDude's Groovy Snippets » Accessing Trac with Groovy and the XML-RPC library — January 12, 2010 @ 5:47 pm

    RSS feed for comments on this post.

    Sorry, the comment form is closed at this time.

    Powered by WordPress