Apr 30, 2009

Maven Skip Tests

To run maven without running the tests:

mvn install -Dmaven.test.skip=true

Apr 20, 2009

Eclipse "cannot be resolved to a type" error

Error: I was getting several "cannot be resolved to a type" error messages and red X's on the packages.

Solution: Right click on the project in the package explorer and select Refresh.

Apr 17, 2009

Eclipse PHP Development Tools

PDT: http://www.eclipse.org/pdt/

Eclipse failed during execution error message

Error: failed during execution of mojo: org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile

Solution: Modify eclipse.ini file (found in the eclipse installation directory) -vm property with the same java jdk vm used for maven.

C:\Program Files\Java\jdk1.5.0_18\jre\bin\client\jvm.dll

Reference: http://archive.hausfoundation.org/lists/dev@m2eclipse.codehaus.org/msg/13206683.1196911797792.JavaMail.haus-jira@codehaus01.managed.contegix.com

Apr 14, 2009

Error "Invalid thread access" during Maven import

When trying to import a maven project using Eclipse 7.1 I got the following error message:

An internal error occurred during: "Importing Maven projects". Invalid thread access.

Apparently m2eclipse importing of Maven projects is not supported in Eclipse 7.1. I uninstalled Eclipse 7.1 and installed Eclipse 7.0 to fix the problem.



Apr 10, 2009

Error: java.lang.OutOfMemoryError: Java heap space

If Java runs out of memory, the following error occurs:

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space


Exception in thread "main" java.lang.OutOfMemoryError: PermGen space

java -Xms[initial heap size] -Xmx[maximum heap size] -XX:MaxPermSize=[maximum permanent size]


java -Xms128m -Xmx256m -XX:MaxPermSize=256m