
I was able to diagnose this problem by looking at the metadata files that maven keep in:
cat ~/.m2/repository/path-to-your-dependency/maven-metadata-<remote-hostname>.xml
Personal Log of Vicente "Thirdy" S. de Rivera III. Thoughts and opinions about everyday life, Programming, Music etc.

I was able to diagnose this problem by looking at the metadata files that maven keep in:
cat ~/.m2/repository/path-to-your-dependency/maven-metadata-<remote-hostname>.xml

Today I was writing a class JUnit test code that of course runs very slow as it starts up by bringing the whole AWS infrastructure online (exaggeration) just to run several assertTrue statements..
As you might suspect, I am not fond of writing this test code. This is because I know in my heart that this test code will be more burden than useful:
PS: The title is inspired by Nico Rosberg's podcast called "Beyond Victory"
While investigating an issue, I saw a NullPointerException without a stacktrace..
ERROR logs that omits the throwable object (and it is available) is quite devastating. I call such situation 'swallowing the exception'.
However, this time, it is very different. Apparently the HotSpot JVM may opt to not log the stacktrace but only the exception:
![]() |
| Screenshot of my May 12, 2014 worklog |
#!/bin/sh3. Learning to use the date command should be easy. xargs however is little more difficult. Fortunately, this page explained it well.
date "+%B %d, %Y" | xargs -0 tomboy --new-note
chmod 777 tomboy.sh5. Enjoy!



\b(cat|kitten)\b
\b(dog|curr)\b
\b(buffalo|tamaraw)\b
public class Animals {
private Listregexes;
public Animals(Listregexes) {
this.regexes = regexes;
}
public String detectAnimal(String input) {
// for each regex, create a java.util.Pattern and at the first match, return Matcher.group()
}
}
File file = new File(Animals.class.getResource(Animals.DEFAULT_CONFIG_FILE).getFile()) Animals animal = new Animal(Arrays.asList(file.getText().split('\n')))
\b(cat|kitten)\b\rThis essentially breaks all the regexes except the last one: \b(buffalo|tamaraw)\b Debugging this (I used Eclipse) was tricky since '\r' or carriage return is non-printable character.
\b(dog|curr)\b\r
\b(buffalo|tamaraw)\b
To make this much more complicated, in the Java code, I have already written the code that loads the config file which uses Apache Commons IO FileUtils. This code was located in a Project wite Utils class which uses a java static block to load config files. Which, honestly, I don't like. Since using static blocks is a bad practice.
Honestly, this might have clouded my judgement of not using this Utils class. Also since Groovy is a shiny new language, so I was excited in using the new & improved File class. But apparently, Groovy's File class does not have readLines as opposed to FileUtils from Apache Commons.
TODO, make this post more readabletry {
}
catch (Exception ex) {
// Gotcha!
}