1.先下载安装maven,配置文件 D:\apache-maven-3.3.9-bin\conf\settings.xml 的localRepository更改如下(即jar包下载目录):
<localRepository>D:/apache-maven-3.3.9-bin/download</localRepository>
2.eclipse - preferences - Maven - UserSetting -- user Setting localPepository 选取settings.xml文件
4.项目右键 - MAVEN -update Project(可以先右键 configure -- convert to maven project)
5.蜘蛛debug -- Debug Configuration -- Maven Build -- 右键新建
Main -- Base directory -- Browse Workspace
Goals -- tomcat7:run
UserSetting -- maven的那个settings.xml
Source -- Project -- 你的项目
5步骤pom.xml要配置tomcat插件
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.1</version>
<configuration>
<span style="white-space:pre"> </span><port>8080</port>
<path>/sys</path>
<uriEncoding>UTF-8</uriEncoding>
</configuration>
</plugin>