Eclipse is running in a JRE, but a JDK is required

“Eclipse is running in a JRE, but a JDK is required. Some Maven plugins may not work when importing projects or updating source folders.”

To suppress the message that shows up ine the console when you launch Eclipse, you can simply add in your eclipse.ini the following :



Create a Maven archetype from an existing project on Eclipse

First, a mvn archetype:create-from-project and a mvn install on the created archetype in target/generated-sources/archetype directory.

A directory, named ${groupId}/${artifactId}-archetype, containing a jar and pom.xml is generated into the repository.

A mvn archetype:crawl -Drepository=/path/to/.m2 is then used to generate the archetypes catalog. The archetype-catalog.xml file is by default generated in .m2/repository (this can be changed while using the parameter -Ddirectory=/path/for/xml)

Finally, in Eclipse, go to Window > Prefences > Maven > Archetypes > Add local catalog, enter the name and directory of this catalog.

When you create a new Maven project on Eclipse, you can select your ${groupId}/${artifactId}-archetype in your catalog freshly named.

More on :

Maven webapp on Eclipse with Tomcat

I finally did it !!!!!!!!!!!!

I manage to configure a Maven webapp to run on a Tomcat Server to test the JSPs on Eclipse.

.: To Complete :.

1. Create a library for Tomcat JARs
Window > Preferences > Java > Build Path > User Libraries

2. Add this library to classpath with maven-eclipse-plugin


A big thank to that site

Let’s code then 😀