Monthly Archives: September 2016

Using Optional in Java 8

“The introduction of null references was my billion dollar mistake” – Tony Hoare Optional is a (typed) container object. It may contain a single object, or it may be empty. It allows you to avoid null pointer exceptions. In this … Continue reading

Posted in Java | Tagged | Leave a comment

Maven offline build fails to resolve artifacts in your local repository

Recently I’ve been trying to set up a new machine with a maven build that can work offline. My first instinct was to do the following: Configure maven with a ~/.m2/settings.xml file with our set of Nexus repos (we use … Continue reading

Posted in Maven | Tagged | Leave a comment