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:
- Start Netbeans. Team | Subversion | Checkout..
Enter http://svn.codehaus.org/groovy/trunk/groovy/modules/xmlrpc/ and a local directory- ==[IDE]== Jan 2, 2010 8:55:32 PM Checking out...
- 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
- A /media/NEXUSII/GroovyAndGrails/GroovyBuildNB/xmlrpc/repository
- A /media/NEXUSII/GroovyAndGrails/GroovyBuildNB/xmlrpc/repository/jivesoftware
- A /media/NEXUSII/GroovyAndGrails/GroovyBuildNB/xmlrpc/repository/jivesoftware/smackx
- A /media/NEXUSII/GroovyAndGrails/GroovyBuildNB/xmlrpc/repository/jivesoftware/smackx/3.0.1
- A /media/NEXUSII/GroovyAndGrails/GroovyBuildNB/xmlrpc/repository/jivesoftware/smackx/3.0.1/smackx-3.0.1.jar.md5
- A /media/NEXUSII/GroovyAndGrails/GroovyBuildNB/xmlrpc/repository/jivesoftware/smackx/3.0.1/smackx-3.0.1.jar
- A /media/NEXUSII/GroovyAndGrails/GroovyBuildNB/xmlrpc/repository/jivesoftware/smack
- A /media/NEXUSII/GroovyAndGrails/GroovyBuildNB/xmlrpc/repository/jivesoftware/smack/3.0.1
- A /media/NEXUSII/GroovyAndGrails/GroovyBuildNB/xmlrpc/repository/jivesoftware/smack/3.0.1/smack-3.0.1.jar
- A /media/NEXUSII/GroovyAndGrails/GroovyBuildNB/xmlrpc/repository/jivesoftware/smack/3.0.1/smack-3.0.1.jar.md5
- A /media/NEXUSII/GroovyAndGrails/GroovyBuildNB/xmlrpc/.classpath
- A /media/NEXUSII/GroovyAndGrails/GroovyBuildNB/xmlrpc/.project
- A /media/NEXUSII/GroovyAndGrails/GroovyBuildNB/xmlrpc/src
- ...
- Build the library (right click on the project and Build)
- NetBeans: Executing 'mvn -Dnetbeans.execution=true install'
- NetBeans: JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.16
- Scanning for projects...
- Building Groovy XML-RPC
- task-segment: [install]...
- 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
- BUILD SUCCESSFULTotal time: 9 seconds
- Finished at: Sat Jan 02 21:34:59 CET 2010Final Memory: 25M/137M
- Download missing dependencies
Eventually some libraries are missing, Netbeans will remind you. (Just press download)
In part 2 we will use the library to access TRAC via XML-RPC.







[...] 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