IllegalArgumentException in Maven

Today i was spending a couple of hours trying to get Hudson to use Maven to compile a project. Actually the Hudson part was smooth, but Maven decided to crash when a compilation was started. This was the stacktrace i got:

[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] null
[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.IllegalArgumentException
at sun.net.www.ParseUtil.decode(ParseUtil.java:189)
at sun.misc.URLClassPath$JarLoader.(URLClassPath.java:563)
at sun.misc.URLClassPath$3.run(URLClassPath.java:331)
at java.security.AccessController.doPrivileged(Native Method)
at sun.misc.URLClassPath.getLoader(URLClassPath.java:320)
at sun.misc.URLClassPath.getLoader(URLClassPath.java:297)
at sun.misc.URLClassPath.getResource(URLClassPath.java:167)
at java.net.URLClassLoader$1.run(URLClassLoader.java:192)
at java.security.AccessController.doPrivileged(Native Method)

Which is very similar to the problems described in maven-javadoc-faq and Bug ID:6219854. After a lot of searching i stumbled upon Bug ID:6522294 which made me think more about which files and URL:s that were used by Maven.
The cause of the problem was that I had some invalid characters in my ".m2/settings.xml". Easy to fix but hard to find.

Comments

Popular posts from this blog

jQuery floating table header plugin

Cubing for charity #4

KB927917