Monday, July 18, 2011

Maven :: maven-apt-plugin


<plugin>
<groupId>org.apache.myfaces.tobago</groupId>
<artifactId>maven-apt-plugin</artifactId>
<version>1.0.10-BEA</version>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>execute</goal>
</goals>
<configuration>
<generated>.apt_generated</generated>
<aptOptions>x=3,web.content.root=WebContent</aptOptions>
<target>1.5</target>
<nocompile>true</nocompile>
<showWarnings>true</showWarnings>
<verbose>false</verbose>
<fork>false</fork>
<sourcePath>src</sourcePath>
</configuration>
</execution>
</executions>
</plugin>

Wednesday, July 6, 2011

Eclipse shows Initializing Java Tooling NullPointerException Error

Eclipse IDE shows Initializing Java Tooling java.lang.NullPointerException when a new workspace is trying to load
One of the reason for this error is due to different JRE used by the Eclipse IDE and the System environment variable settings for JAVA_HOME. Edit the environment variable JAVA_HOME and set it to the same JRE used by Eclipse IDE. Close and reopen the Eclipse IDE will resolve the hanging or taking long time to load.
You will notice a glimpse of Initializing Java Tooling and it will complete soon without any error.