Les Hazlewood

Where Les is More

Switching maven settings.xml by name

I thought I’d throw this out there for anyone that might find this convenient: As Maven users know, local maven settings reside in $HOME/.m2/settings.xml However, sometimes I use some settings/config for when I’m working on open source projects that assume Maven central + Sonatype signature defaults, and I use different ones when working on work¬†(closed source) projects that assume our company Artifactory server¬†and other permissions. Ordinarily you’d modify the settings.xml file every time.. Read More

Upgrading from Groovy 1.7.x to 1.8.x: MissingPropertyException: No such property: for class:

Just jotting this down for anyone that might encounter this problem. Apparently Groovy 1.8 introduced a backwards-incompatible language syntax change. It cropped up for me while I was attempting to compile existing Groovy unit tests (written against Groovy 1.7.x) that use EasyMock. I’ll show an example next – just note that that what I experienced was due to a Groovy syntax issue and not specific to EasyMock. In a test case, I had.. Read More

Google Chrome Funny Language Detection

I thought this was rather amusing. When viewing a web server directory listing (in this case, the Maven Central repository), Chrome thought it was Italian. Seems like their language detection stuff isn’t quite fully fleshed out yet: To be fair, it’s just a directory listing, and I bet my request was served from M2 Central’s European mirror which probably resides partly in Italy. This is strange though, since I’m in Silicon Valley, California.. Read More

A Moral Dilemma

I’d like your thoughts on a moral dilemma I encountered last night in San Francisco. Here’s the story: On my way in to an In-n-Out Burger to grab a quick bite, there was a homeless guy in his mid-twenties sitting in front of the door with his scrawny-but-cute dog. He asked, “Could you please spare some food when you come out?”. Now, San Francisco is known for having one of the worst homeless.. Read More