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.* release.properties 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 :

mvn:deploy

will deploy to my scm definition in my pom.xml

<scm>
<connection>scm:svn:http://subversion/project/dir</connection&gt;
<developerConnection>scm:svn:http://subversion/project/dir</developerConnection&gt;
<url>http://subversion/project/dir</url&gt;
</scm>

and reference to it in your repository

<repository>
<id>vocanic-m2</id>
<url>http://subversion/m2/</url&gt;
<snapshots>
<enabled>true</enabled>
</snapshots>
</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

Advertisements

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
address 192.168.1.45
netmask 255.255.255.0
#gateway 192.168.1.1
gateway 192.168.1.254
broadcast 192.168.1.255

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$ "

\u@\h\

  • user @ hostname

\[\e[1;4;33m\]

  • 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 “;”

\[\e[0m\]

  • 0 resets to normal display

\W

  • working directory

find and delete

Leave a comment

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

tar gzip several files into a single archive

2 Comments

from http://www.gzip.org/#faq7

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

Older Entries Newer Entries