eclipse maven开发环境设置

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>

 

posted @ 2017-05-24 17:01  遮阳伞  阅读(179)  评论(0编辑  收藏  举报