mvn release:*

1 Comment

I am trying to use maven release plugin to cut releases, I really like maven’s dependency management, and here’s trying to use maven to manage releases. Special thanks to John and Nick.

It’s really just 3 steps :

  1. mvn release:prepare -DdryRun=true
  2. mvn release:clean release:prepare
  3. mvn release:perform

But here are some things I learnt though…

  1. Upon release:prepare errors, use release:rollback before release:clean (wipe out all the pom.* that’s needed for release plugin)
  2. Undoing subversion changes using  svn merge -r 999:998 http://subversion/project/dir to revert back to the last working version. This is because release:prepare errors might have occurred after copy checked into subversion.

And finally, some pre-requisites :

Working copy must be SNAPSHOT

Dependencies must NOT be SNAPSHOT – to overcome this I had to  download and install a ‘special version’ into your own (local) maven repository :


will deploy to my scm definition in my pom.xml


and reference to it in your repository


Mac OS subversion 1.4.4 – use this version because on Leopard, subversion 1.5.1 has a problem and somehow can’t create tags on subversion causing the release:prepare to check in the release copy but cannot move/create a tag copy – that’s where I learn (2) above – see here also


Firefox autocomplete on HTML Form

Leave a comment

Just learn t something today…

FireFox will cache your form values when you refresh a page…. I had this problem and was causing my animation to go haywire…. if you need to turn this auto caching off you can do :

<form autocomplete="off" /> or <input ... autocomplete="off" />

Default Gateway on Ubuntu

Leave a comment

josh@wombat:/etc/network$ more interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

## Network interface(s)
## You should (un)comment and edit according to your needs.

# The primary network interface (dhcp)
#auto eth0
#iface eth0 inet dhcp

# The primary network interface (static IP)
auto eth0
iface eth0 inet static


Blogging from iphone

Leave a comment

Trying out wordpress iPhone app ….. Below is a French toast from the Hong Kong cafe in Singapore!!


Colourful PS1 that still auto wraps

Leave a comment

export PS1="\u@\h\[\e[1;4;33m\][LIVE]\[\e[0m\]:\W$ "


  • user @ hostname


  • enclosing “\[” and “\]” – to /not/ confuse the screen mode so that auto wrapping is preserved.
  • “\e” – is the escape, you could use “33” too
  • “1;4;33” – “1” is for “bold”, “4” is for “underline”, and “33” is for “yellow”, you can add background colour by adding the ascii code for background colour – just separate these numbers with “;”


  • 0 resets to normal display


  • working directory

find and delete

Leave a comment

find . -name ".svn" -exec rm -rf {} \;


tar gzip several files into a single archive



for GNU tar: gtar cvzf file.tar.gz filenames
for any tar: tar cvf - filenames | gzip > file.tar.gz


Older Entries Newer Entries