Archive for the ‘Java’ Category

Lately I wrote myself some small GUI tools using Groovy’s SwingBuilder. To “install” them in my system I wanted to create a single JAR file containing all the required dependencies. Using the following maven plugin configuration it was very easy to achieve that: <plugin> <artifactId>maven-assembly-plugin</artifactId> <configuration> <archive> <manifest> <mainClass>fully.qualified.MainClass</mainClass> </manifest> </archive> <descriptorRefs> <descriptorRef>jar-with-dependencies</descriptorRef> </descriptorRefs> </configuration> [...]

Two weeks ago I updated our internal JIRA to the latest version 4.1 which provides some nice UI improvements especially in the detail view of issues and image attachments. Unfortunately since the update I am not able to use the Mylyn connector inside my Springsource Tool Suite with JIRA. When I try to update an [...]

In one of my current consulting projects the topic of implementing equals and hashCode in Hibernate domain model classes was discussed again so I decided to write down how I deal with that in my projects. First I encourage every Java developer to read chapter 3 of Effective Java from Joshua Bloch – which is [...]

Lately I had problems configuring the JMX remote management for tomcat servers running on Ubuntu linux servers. After configuring everything necessary like the com.sun.management.jmxremote JVM parameters and the password files I still got connection errors when trying to connect from my Windows system to the server via jconsole. I found this bug entry for the [...]

As I stated out in one of my last posts I am using cygwin a long time now and I am using it more and more within the last months. This is mainly caused by switching to git as my new favorite source code management tool and using maven for every Java project I am [...]

As I tweeted I registered for this years coding contest hosted by the Catalysts at the JKU. It was a great experience and I will try again next year because I am not satisfied with my result. I started very good and reached the third level first but then I misinterpreted the specification and worked [...]

In one of my projects I am using a content repository to store the data. The platform for the application is the Spring framework and so I decided to use the JCR part of Spring Modules to access the content repository. This solution worked out great so far – I ran only into one problem [...]

Lately I was a bit surprised when I found out that the default rounding mode in Java is something called “half even”. This API docs page provides good information about rounding in Java. For HAVE_EVEN it says: Rounding mode to round towards the “nearest neighbor” unless both neighbors are equidistant, in which case, round towards [...]

Some of you may not know this, but the m2eclipse plugin supports multimodule maven projects perfectly. I switched my project layout two months ago and I am very happy with the results. I am now able to create new release of my product containing all of its components with one single command. Before I changed [...]

I made my first “experiments” with Subversion about two years ago. After using Eclipse and CVS for a long time I expected a smooth upgrade with getting some new features (versioned directories, renaming, moving …) – I was disappointed. The biggest problem was that the CVS client included in Eclipse is really perfect – which [...]


Follow Me!

Photostream

    P1010008 (2)P1010026P1010028P1010021P1010009 (2)P1010033 (2)

RSStOMPSON's tweets