eclipse update site
http://download.eclipse.org/technology/m2e/releases
MVN repository site
Setting.xml
Junit
http://www.mvnrepository.com/artifact/junit/junit
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
</dependency>
struts2
http://www.mvnrepository.com/artifact/org.apache.struts/struts2-core
<dependency>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-core</artifactId>
<version>2.3.20</version>
</dependency>
http://www.mvnrepository.com/artifact/org.apache.struts/struts2-convention-plugin
<dependency>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-convention-plugin</artifactId>
<version>2.3.20</version>
</dependency>
如果在使用m2eclipse遇到如下提示
Eclipse is running in a JRE, but a JDK is required
Some Maven plugins may not work when importing projects or updating source folders.
这是因为Eclipse默认是运行在JRE上的,而m2eclipse的一些功能要求使用JDK,解决方法是配置Eclipse安装目录的eclipse.ini文件,添加vm配置指向JDK,
在需要使用中古包的时候,注意<dependency>的顺序