Existing Maven project to Eclipse based dynamic web project -


I am not good with the Maven project stuff, so I would like to convert it into dynamic Web project in eclipse. This Maven Project includes a web project and other sub-projects to replace the Elyepus-based dynamic web project. How to convert all of these supported projects together with Maven Web Project. Please help with this.

Add this plugin to your pom

  & lt ;! - Maven Eclipse Plugin - & gt; & Lt ;! - TestSources is the last flag in version 2.9, but is not deleted. Settings - & gt; & Lt; Plugin & gt; & Lt; Group & gt; Org.apache.maven.plugins & lt; / Group & gt; & Lt; ArtifactId & gt; Maven-eclipse-plugin & lt; / ArtifactId> & Lt; Version & gt; 2.8 & lt; / Edition & gt; & Lt; Configuration & gt; & Lt; UseProjectReferences & gt; False & lt; / UseProjectReferences & gt; & Lt; / Configuration & gt; & Lt; / Plugin & gt;  

In this property: eclipseTomcatServer must match the name of your badge in the eclipse

   

and this is in your profile

  & lt; Profiles & gt; & Lt ;! - Profile to enable WTP in Eclipse - & gt; & Lt; Profile & gt; & Lt; ID & gt; WTTP & lt; / Id & gt; & Lt; Activation & gt; & Lt; File & gt; & Lt; Is present & gt; Src / home / webapp & lt; / Exists & gt; & Lt; / File & gt; & Lt; / Activation & gt; & Lt; Construction & gt; & Lt; Plugins & gt; & Lt; Plugin & gt; & Lt; Group & gt; Org.apache.maven.plugins & lt; / Group & gt; & Lt; ArtifactId & gt; Maven-eclipse-plugin & lt; / ArtifactId> & Lt; Configuration & gt; & Lt; DownloadSources & gt; False & lt; / DownloadSources & gt; & Lt; DownloadJavadocs & gt; False & lt; / DownloadJavadocs & gt; & Lt ;! - WTP version - & gt; & Lt; Wtpversion & gt; 2.0 & lt; / Wtpversion & gt; & Lt ;! - WTP server - & gt; & Lt; Wtpdefaultserver & gt; $ {EclipseTomcatServer} & lt; / Wtpdefaultserver & gt; & Lt; ClasspathContainers & gt; & Lt ;! - Library from JRE - & gt; & Lt; ClasspathContainer & gt; Org.eclipse.jdt.launching.JRE_CONTAINER & lt; / ClasspathContainer & gt; & Lt ;! - Library from server container - & gt; & Lt; ClasspathContainer & gt; Org.eclipse.jst.server.core.container/ org.eclipse.jst.server.tomcat.runtimeTarget / $ {eclipseTomcatServer} & lt; / ClasspathContainer & gt; & Lt ;! - Library from Meta-INF / MANIFEST.MF - & gt; & Lt; -! & Lt; ClasspathContainer & gt; Org.eclipse.jst.j2ee.internal.web.container & lt; / ClasspathContainer & gt; - & gt; & Lt ;! - Web-INF / Library of libraries - & gt; & Lt ;! - & lt; ClasspathContainer & gt; Org.eclipse.jst.j2ee.internal.module.container & lt; / ClasspathContainer & gt; - & gt; & Lt; ClasspathContainer & gt; Org.eclipse.jst.j2ee.internal.web.container / artifact & lt; / ClasspathContainer & gt; & Lt; / ClasspathContainers & gt; & Lt; AdditionalBuildcommands & gt; & Lt ;! - Javascript support - & gt; & Lt; Buildcommand & gt; Org.eclipse.wst.jsdt.core.javascriptValidator & lt; / Buildcommand & gt; & Lt; / AdditionalBuildcommands & gt; & Lt; AdditionalProjectnatures & gt; & Lt ;! - Javascript support - & gt; & Lt; Projectnature & gt; Org.eclipse.wst.jsdt.core.jsNature & lt; / Projectnature & gt; & Lt; / ExtraProjectnatures & gt; & Lt; AdditionalProjectFacets & gt; & Lt ;! - Javascript support - & gt; & Lt; Wst.jsdt.web & gt; 1.0 & LT; /wst.jsdt.web> & Lt; / AdditionalProjectFacets & gt; & Lt; / Configuration & gt; & Lt; / Plugin & gt; & Lt; / Plugins & gt; & Lt; / Create & gt; & Lt; / Profile & gt; & Lt; / Profile & gt;  

then type the command

  eclipse: eclipse  

or

  Mvn eclipse: eclipse -dwtpversion = [wtp version, typically 2.0]  

Comments