1.安装eclipse和maven
2.给eclipse安装maven插件
打开eclipse
Click Help -> Install New Software
点击add,地址填:http://download.eclipse.org/technology/m2e/releases
3.设置下载javadoc和源码
在pom.xml文件中加入:
<project> [...] <build> [...] <plugins> [...] <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-eclipse-plugin</artifactId> <configuration> <downloadSources>true</downloadSources> <downloadJavadocs>true</downloadJavadocs> </configuration> </plugin> [...] </plugins> [...] </build> [...] </project>