Eclipse -Maven环境集成
1.下载Maven: apache-maven-3.3.9-bin.zip2.配置本地资源库:\conf\setting.xml<!--修改默认本地资源库目录-->
<localRepository>D:\workspace\repository</localRepository>
3.Eclipse安装Maven插件http://download.eclipse.org/technology/m2e/releases注:安装的时候,把“Contact all update sites during install to find required software”这个勾去掉4.Eclipse配置Maven4.1 Mavne-Installations-Add 配置本地Mavne安装目录4.2 User Settings4.2.1 将Maven的setting.xml复制一份到本地资源文件库目录4.2.2 配置如下图Global Settings - Maven 的setting.xmlUser Settings - 本地资源文件库目录中的setting.xmlLocal Repository - 本地资源文件库目录
[*]创建Maven项目
1. New --> Maven Project2. pom.xml添加J2EE依赖
<!-- 导入java ee jar 包 -->
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-api</artifactId>
<version>7.0</version>
</dependency>3.Java Build Path -->修改 JRE版本4.Project Facets -->
支持分享
页:
[1]