diff --git a/wicket-user-guide/src/main/asciidoc/img/eclipse-classpath-variables.png b/wicket-user-guide/src/main/asciidoc/img/eclipse-classpath-variables.png deleted file mode 100644 index 47898ef195..0000000000 Binary files a/wicket-user-guide/src/main/asciidoc/img/eclipse-classpath-variables.png and /dev/null differ diff --git a/wicket-user-guide/src/main/asciidoc/img/eclipse-maven-import.png b/wicket-user-guide/src/main/asciidoc/img/eclipse-maven-import.png index 81699f1049..047c74f01a 100644 Binary files a/wicket-user-guide/src/main/asciidoc/img/eclipse-maven-import.png and b/wicket-user-guide/src/main/asciidoc/img/eclipse-maven-import.png differ diff --git a/wicket-user-guide/src/main/asciidoc/img/eclipse-maven-select.png b/wicket-user-guide/src/main/asciidoc/img/eclipse-maven-select.png new file mode 100644 index 0000000000..67cfc89c45 Binary files /dev/null and b/wicket-user-guide/src/main/asciidoc/img/eclipse-maven-select.png differ diff --git a/wicket-user-guide/src/main/asciidoc/maven/maven_2.adoc b/wicket-user-guide/src/main/asciidoc/maven/maven_2.adoc index c09f6e8bb2..f6892b6909 100644 --- a/wicket-user-guide/src/main/asciidoc/maven/maven_2.adoc +++ b/wicket-user-guide/src/main/asciidoc/maven/maven_2.adoc @@ -90,26 +90,15 @@ Intellj IDEA comes with a Maven importing functionality that can be started unde image::../img/intellj-maven-import.png[] *Eclipse* -If our IDE is Eclipse the import procedure is a little more complex. Before opening the new project we must generate the Eclipse project artifacts running the following command from project root: - -[source,java] ----- -mvn eclipse:eclipse ----- - -Now to import our project into Eclipse we must create a classpath variable called M2_REPO that must point to your local Maven repository. This can be done selecting “Window/Preferences” and searching for “Classpath Variables”. The folder containing our local Maven repository is usually under our user folder and is called .m2 (for example under Unix system is /home//.m2/repository): - -image::../img/eclipse-classpath-variables.png[] - -Once we have created the classpath variable we can go to “File/Import.../Existing Project into Workspace”, select the directory of the project and press “Finish”: +Just like the other IDEs Eclipse supports Maven projects out of the box. Open the “File/Import...” dialog and search for Maven: image::../img/eclipse-maven-import.png[] -Once the project has been imported into Eclipse, we are free to use our favourite plug-ins to run it or debug it (like for example https://github.com/xzer/run-jetty-run/[run-jetty-run]). +then, select the project folder containing the POM file: -NOTE: Please note the option “Copy projects into workspace” in the previous illustration. If we select it, the original project generated with Maven won't be affected by the changes made inside Eclipse because we will work on a copy of it under the current workspace. +image::../img/eclipse-maven-select.png[] -NOTE: If we modify the pom.xml file (for example adding further dependencies) we must regenerate project's artifacts and refresh the project (F5 key) to reflect changes into Eclipse. +Once the project has been imported into Eclipse, we are free to use our favourite plug-ins to run it or debug it (like for example https://github.com/xzer/run-jetty-run/[run-jetty-run]). === Speeding up development with plugins.