Skip to main content

Blog Archive for johnsmart during August 2008

It is an excellent and widely used best practice to tag each of your stable releases in your version control system for future reference. However, this sort of bookkeeping is tedious and error-prone at the best of times. Like many tedious, error-prone tasks, it is one of those things that could do with a bit of automation. Fortunately, Maven can help. The Maven Release Plugin helps you automate...
One common requirement when you set up a Subversion repository concerns how it will be backed up. Another involves what happens if the main repository server goes down for some reason. Yet another is about how to deal with teams distributed across large distances or connected with limited networks. Subversion has some interesting solutions to all of these concerns, notably via the svnsync tool,...
Findbugs is one of my favorite static analysis tools. It's goal in life is to enables you to isolate and correct dangerous Java bugs in your code, and it does this particularly well. I find that the issues raise by FindBugs are very often worthy of attention - indeed, the issues it finds can be particularly knarly ones, and the "false-positive" rate is suprisingly low for this type of tool. If...
Schemaspy is a little known but very useful database analysis tool that generates an interactive graphical representation of your database structure, in terms of tables and relationships. This is a very cool tool that works wonders when you need to understand a new database structure. Indeed Schemaspy gets a chapter in the Java Power Tools book. A sample Schemaspy report can be found here. If...
Easyb is a very cool way to test your Java application in BDD-style with Java. But wouldn't it be nice to be able to integrate your BDD stories into your Maven build process? The good news is, you can! Writing a BDD-style test story with easyb is, well, easy. Groovy is a great way for Java developers to write tests quickly and efficiently, even if they don't know the finer points of the Groovy...
Maven archetypes are great. But remember how painful it is to create a new Maven project from the command line, with all those command-line options to remember? Enough to put off even the most hardened Maven enthusiast! Sure, you can always use your trusty IDE. But what about those times when you really need to create a Maven project from the command line. Maybe your using a machine without all...
After the Java Emerging Technologies Conference 2008 (JET 2008) in Auckland, I will be giving a talk on Behavior Driven Development (BDD) in Java with easyb, a new and very hip behavior driven development framework for Java for the Victorian Java User Group in Melbourne, Australia. This talk takes place at the same time as the Melbourne Java Power Tools Bootcamp - this is the first Australian...
Hibernate 3 annotations are a great way to persist your domain model in a database backend. It's quite easy to have Hibernate generate or update the database schema as required, and not have to hand-code SQL scripts at all. However, this approach often hits a few hurdles when it reaches the DBA teams - they usually insist on obscure and archaic naming conventions, and sometimes even want to see...