需要交流请进群-- 494831900 --我和群中朋友会及时回答
1:下载maven :maven.apache.org 下载maven
2:解压Maven 配置环境变量 maven_home
3: 在eclipse中配置Maven
3.1:
3.2:配置本地的maven库 指的是maven的 setting 文件
3.3: 打开 D:\apache-maven-3.3.3\conf\settings.xml 添加中国的镜像 --替代maven默认从互联网上获取jar的网站 因为用中国的本地速度快
<mirror>
<id>nexus-osc</id>
<mirrorOf>central</mirrorOf>
<name>Nexus osc</name>
<url>http://maven.oschina.net/content/groups/public/</url>
</mirror>
<profiles>
<id>jdk-1.4</id>
<activation>
<jdk>1.4</jdk>
</activation>
<repositories>
<repository>
<id>nexus</id>
<name>local private nexus</name>
<url>http://maven.oschina.net/content/groups/public/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>nexus</id>
<name>local private nexus</name>
<url>http://maven.oschina.net/content/groups/public/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</profiles>
-----------------------------------------------maven 配置完成--------------------------------------------
2:使用eclipse创建maven的动态web项目
2.1: 右击 new new mavenproject
然后新建 jsp 会报错
这样就解决了jsp报错 在 build 中添加 tomcat的jar
2.2 :右击项目 选择properties 选择 project facets 选择java 改为1.8 。选择dynamic web module 选择 3.1