A bunch of Maven Archetypes for Spring based Projects

Maven is a good project management tool which greatly reduces the amount of time we spend on creating java projects with proper structure. With so many predefined maven archetypes it is even easier to create projects by simply selecting the archetype based on the technologies we need and type(jar/war/ear) of project we want to create. However sometimes those predefined archetypes structure may not suite well for our needs or we may need some more additions to the pre-configured dependencies/frameworks etc. Also in Eclipse the default java compiler level is 1.5 and configuring it to 1.6 every time is frustrating.So I thought of creating some custom archetypes for

Continue reading »

Solution for “Eclipse is running in a JRE, but a JDK is required” problem

Hi, When i installed Maven2 Plugin for eclipse i was getting the below error message when i startup my Eclipse IDE. After that when I tried to perform Maven operations thrugh Eclipse I got some errors saying “…/tools.jar” is not there. I did the below things to get rid of that problem. open the eclipse.ini file and add the below argument. -vm C:/Siva/Java/jdk1.6.0_04/bin/javaw.exe Note: The VM configuration should be in two lines and in between –lancher and -vmargs. –launcher.XXMaxPermSize 256m -vm C:/Siva/Java/jdk1.6.0_04/bin/javaw.exe -vmargs -Dosgi.requiredJavaVersion=1.5 -Xms40m -Xmx512m

Continue reading »