Maybe you know the situation: you are developing a web application using the Maven build system along with an application server like Tomcat or Jetty and a corresponding plugin (e.g. the all famous jetty-maven-plugin).

One of the coolest features of these containers is the hot-deployment.

However, every second time a hot deployment is executed, it crashes due to a PermGen space Exception or a similar OutOfMemoryException.

Read more…

You are wondering why your JUnit tests run very fine when you launch them using Eclipse, whereas they all break down when building your project with a build system like Ant or Maven?

Well, thats probably because you are using assert statements and Eclipse per default is not configured to evaluate them.

To solve this problem, simpy go to Run -> Run… -> Arguments, and in the box labeled VM arguments:, enter either -enableassertions or just -ea.

That’s it!