I.. mymetadata file
1, deployment projects for the deployment of the project to the Tomcat server, if there is no such file, with Myeclipse/eclipse deployment is not deployed to the associated Tomcat server.
. mymetadata File:
. MyMetadata Code Collection Code
<?xml version= "1.0" encoding= "UTF-8"?>
<!--
Type: Project Types
Name: Project Title
ID: Unique identification of the project within the workspace
Context-root: Site Root Path
J2EE-SPEC:J2EE Standard
Archive: Post-packaged war file
-
<project-module
Type= "WEB"
Name= "PHEEBSKM"
Id= "myeclipse.1152954865843"
context-root= "/PHEEBSKM"
j2ee-spec= "1.4"
Archive= "Pheebskm.war" >
<attributes>
<!--value:web root directory name--
<attribute name= "Webrootdir" value= "WebRoot"/>
</attributes>
</project-module>
2. Change items in Myeclipse/eclipse to Tomcat folder
(1), in their own workspace found the current use of the project, find the file. MyMetadata, you will see the label context-root= "/example" (example is the name of your app), and you can change it to another name.
(2), select: Project Right--"Properties--" myeclipse--"Web
[Web-root Folder]:/webroot
[Web Context-root]:/root, modify the context-root corresponding value. (Default: Current project name)
Ii.. project file
. Project Code Collection Code
<?xml version= "1.0" encoding= "UTF-8"?>
<projectDescription>
<!--project name <name>-->
<name>PheebsKM</name>
<comment></comment>
<projects></projects>
<!--compiler designation <buildSpec>-->
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments></arguments>
</buildCommand>
</buildSpec>
<!--core features <natures>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
Manual modifications are not required for. project files.
Iii.. classpath file
. Classpath Code Collection Code
<?xml version= "1.0" encoding= "UTF-8"?>
<classpath>
<!--source Directory--
<classpathentry excluding= "main/|webservices/|patterns/|web/|jdk/|resources/|jquery/|util/|jdon/|hotel/" kind = "src" path= "src"/>
<classpathentry kind= "src" path= "Src/hotel"/>
<classpathentry kind= "src" path= "Src/jdon"/>
<classpathentry kind= "src" path= "src/webservices"/>
<classpathentry kind= "src" path= "src/patterns"/>
<classpathentry kind= "src" path= "Src/web"/>
<classpathentry kind= "src" path= "src/jdk"/>
<classpathentry kind= "src" path= "src/resources"/>
<classpathentry kind= "src" path= "src/jquery"/>
<classpathentry kind= "src" path= "src/util"/>
<!--JDK Runtime container--
<classpathentry kind= "Con" path= "Melibrary.com.genuitec.eclipse.j2eedt.core.MYECLIPSE_JAVAEE_5_CONTAINER"/ >
<classpathentry kind= "Con" path= "org.eclipse.jdt.launching.jre_container/ Org.eclipse.jdt.internal.debug.ui.launcher.standardvmtype/jdk1.6.0_17 "/>
<!--The following is the class library, path is a custom directory, the jar file needs to be imported--
<classpathentry kind= "Con" path= "Org.eclipse.jdt.user_library/lib_jar"/>
<!--compiled output class directory--
<classpathentry kind= "Output" path= "Webroot/web-inf/classes"/>
</classpath>
Description
1, sometimes in a Web project we need to add a third-party jar package, when you join the best relative path,
Rather than an absolute path. Otherwise, your project will not work anywhere else. It means you'd better put the relevant jar in the project directory. For Web engineering is relatively simple, the Web project has a Lib directory. Just copy it right here.
2. If you import other projects in Eclipse, you may need to modify the. Project or. mymetadata file, in addition to changing the ingest jar directory.
Configuration file resolution generated after Web project creation