To run maven without running the tests:
mvn install -Dmaven.test.skip=true
Agile Development Practices suggest developers keep a solutions log. I think we can all benefit from a combined solutions log. As I encounter errors or problems I intend to record the solutions on this blog. Please feel to leave your comments, solutions and email me with your errors and solutions.
Apr 30, 2009
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.
Solution: Right click on the project in the package explorer and select Refresh.
Apr 17, 2009
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.
Example:
-vm
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
Solution: Modify eclipse.ini file (found in the eclipse installation directory) -vm property with the same java jdk vm used for maven.
Example:
-vm
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.
Reference:
http://www.myeclipseide.com/index.php?name=PNphpBB2&file=viewtopic&t=23178&start=0&postdays=0&postorder=asc&highlight=
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.
Reference:
http://www.myeclipseide.com/index.php?name=PNphpBB2&file=viewtopic&t=23178&start=0&postdays=0&postorder=asc&highlight=
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
or
Exception in thread "main" java.lang.OutOfMemoryError: PermGen space
java -Xms[initial heap size] -Xmx[maximum heap size] -XX:MaxPermSize=[maximum permanent size]
Example:
java -Xms128m -Xmx256m -XX:MaxPermSize=256m
Subscribe to:
Posts (Atom)