Wednesday, March 20, 2013

I've managed to run out of memory with 16GB!

I've been upgraded to a MacBook Pro with 16GB of memory, not 4GB, not 8GB, but 16GB.

And.. Thats somehow not enough, since I've been able to (through normal work) run out of memory. I don't blame Java. (Kidding...)




[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Java heap space
[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:2882)

Maven skip license check

I recently ran mvn install on a big Java project that I work on, but it kept failing due to some files not having the proper license headers. Well, thats not my concern right now, how do I skip that?

To skip the maven license check, add:

-Dlicense.skip=true

So, my full command (which also skips running the unit tests) is:
mvn clean install -DskipTests=true -Dlicense.skip=true

I suppose you should add yourself a future task of eventually making all of your files have the proper license headers, but you can continue on what you meant to do for now.