eclipse 版本:
eclipse-jee-mars-R-win32-x86_64
Version: Mars Release (4.5.0)
Build id: 20150621-1200
Version: 4.5.0.v20150603-2358
Build id: I20150603-2000
自带maven插件,但没有svn插件
修改maven的user settings为本地settings,maven版本3.2.5
本地maven配置如下:maven整合参考 http://blog.csdn.net/zhshulin/article/details/37921705 和 https://my.oschina.net/cloudcoder/blog/362949
<profile>
<id>jdk-1.7</id>
<activation>
<activeByDefault>true</activeByDefault>
<jdk>1.7</jdk>
</activation>
<properties>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
<maven.compiler.compilerVersion>1.7</maven.compiler.compilerVersion>
</properties>
</profile>
<!-- 阿里云 Maven 镜像服务器配置信息 -->
<mirror>
<id>aliyun</id>
<name>aliyun Maven</name>
<mirrorOf>*</mirrorOf>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
</mirror>
<localRepository>C:\tool\maven\mvnRespo</localRepository>
修改eclipse编码为UTF8,JDK版本为jdk1.8.0_60到http://spring.io/tools/sts/all 下载对应sprign suite tool在eclipse install new soft 中关联本地下载好的插件,安装spring tool插件
安装此插件是为了方便整合,没有此插件也可以。
在没有使用此插件下:
new 一个maven project ,选择 maven-xxx-webapp
新建项目为mmo
eclipse show views 打开 java package exploer视图
有个index.jsp报错,在pom.xml中加入javaee的包后,错误消失。
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-api</artifactId>
<version>7.0</version>
</dependency>
设置部署程序集(Web Deployment Assembly)
上面步骤设置完成后,点击OK,Properties窗口会关 闭,在右键项目打开此窗口。在左侧列表中会出现一个Deployment Assembly,点击进去后
此处列表是,部署项目时,文件发布的路径。
1,我们删除test项,因为test是测试使用,并不需要部署。
2,设置将Maven的jar包发布到lib下。
Add -> Java Build Path Entries -> Maven Dependencies -> Finish
环境基本搭建完成,下面开始搭建项目。
待续...