Preparatory work:
Own private warehouses:
Respository: There is a full jar in it;
Settings.xml the inside of a sentence, to ensure that the use of their own creation of the warehouse:
-----------------------------------------------------------------------------------
1. Create the project:
2. Modify some of the details of the project:
1. Change to UTF-8:
2. Modify into jdk1.7:
Javacompile-> also change to jdk1.7:
So the project is created.
But found the project error: found Web-inf below the index.jsp error. The reason is that the package is missing and the jar package (JAVAX) inside our warehouse is not imported.
You can modify the Pom.xml document.
Just add the following code:
<Dependency><groupId>Javax.servlet</groupId> <Artifactid>Servlet-api</Artifactid><version>2.5</version> <Scope>Provided</Scope> </Dependency> </Dependencies>
That's going to happen.
Below this private warehouse to find the jar package.
001 letter-Creating MyEclipse and MAVEN projects