Setting Maven Heap and PermGen Size

Thursday, 26 December 2013, 14:59

Tags: Maven

Once in a while you will run into memory problems when using maven. Whether it is a java.lang.OutOfMemoryError: Java heap space or java.lang.OutOfMemoryError: PermGen space, these problems can be fixed by increasing the heap and/or permgen size.

Read more


MAVEN_OPTS

Thursday, 26 December 2013, 14:31

Tags: Maven

The MAVEN_OPTS environment variable can be used to set options that will be used every time the mvn command is executed.

Read more


pushd and popd

Wednesday, 25 December 2013, 20:44

Tags: CLI Windows

The pushd command can be used to change the current directory and save the directory you came from. Every time the pushd command is executed the origin directory will be pushed on top of the stack that saves the history of origin directories. The popd command will pop the the top directory of the stack and navigate back there.

Read more


Maven Setup

Tuesday, 24 December 2013, 16:36

Tags: Maven

Setting up maven is pretty easy, it only requires a few simple steps.

Read more


%~dp0

Tuesday, 24 December 2013, 15:53

Tags: CLI Windows

%~dp0 is a very useful command when writing bat files. It will resolve to the folder in which the executing bat file is located. It is also very weird looking, but there is an explanation for the structure of the command.

Read more