go to  ForumEasy.com   
JavaPro
Home » Archive » Message


[Email To Friend][View in Live Context][prev topic « prev post | next post » next topic]
  What have been done?
 
Subject: What have been done?
Author: Alex_Raj
In response to: Maven -- Import Java WebApp project into Eclipse IDE WTP
Posted on: 03/29/2012 01:42:24 PM

Apart from the two files:

  • .project

  • .classpath

  • which are for the standard Eclipse IDE project, a new folder has been created:
         [+] -- .setting
              [-] -- org.eclipse.wst.common.component
              [-] -- org.eclipse.wst.common.project.facet.core.xml
    


    org.eclipse.wst.common.component
    <?xml version="1.0" encoding="UTF-8"?>
    <project-modules id="moduleCoreId" project-version="2.0">
      <wb-module deploy-name="MyWebProject">
        <property name="context-root" value="MyWebProject"/>
        <wb-resource deploy-path="/" source-path="src/main/webapp"/>
        <property name="java-output-path" value="/target/classes"/>
        <wb-resource deploy-path="/WEB-INF/classes" 
                   source-path="src/main/resources"/>
      </wb-module>
    </project-modules>
    



    org.eclipse.wst.common.project.facet.core.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <faceted-project>
      <fixed facet="jst.java"/>
      <fixed facet="jst.web"/>
      <installed facet="jst.web" version="2.4"/>
      <installed facet="jst.java" version="1.4"/>
    </faceted-project>
    



     

    > On 03/29/2012 01:33:11 PM Alex_Raj wrote:

    To convert Java web application into Eclipse IDE with the support of WTP, type in the command:
    mvn eclipse:eclipse -Dwtpversion=2.0
    


    Output:
    [INFO] Scanning for projects...
    [INFO]
    [INFO] ------------------------------------------------------------------------
    [INFO] Building MyWebProject Maven Webapp 1.0-SNAPSHOT
    [INFO] ------------------------------------------------------------------------
    [INFO]
    [INFO] >>> maven-eclipse-plugin:2.9:eclipse (default-cli) @ MyWebProject >>>
    [INFO]
    [INFO] <<< maven-eclipse-plugin:2.9:eclipse (default-cli) @ MyWebProject <<<
    [INFO]
    [INFO] --- maven-eclipse-plugin:2.9:eclipse (default-cli) @ MyWebProject ---
    [INFO] Adding support for WTP version 2.0.
    [INFO] Using Eclipse Workspace: null
    [INFO] Adding default classpath container: org.eclipse.jdt.launching.JRE_CONTAIN
    ER
    [INFO] Not writing settings - defaults suffice
    [INFO] Wrote Eclipse project for "MyWebProject" to C:\HelloWorld\Maven\MyFirstWe
    bProject\MyWebProject.
    [INFO]
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD SUCCESS
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 1.254s
    [INFO] Finished at: Thu Mar 28 23:19:49 PDT 2012
    [INFO] Final Memory: 7M/154M
    [INFO] ------------------------------------------------------------------------
    





    References:

     


     
    Powered by ForumEasy © 2002-2022, All Rights Reserved. | Privacy Policy | Terms of Use
     
    Get your own forum today. It's easy and free.