---
title: "svn插件没有check out as maven project(转)"
author: "zhb8015"
date: "2015-05-14T17:28:46Z"
tags: []
categories: ["编程语言"]
slug: "svn-check-out-as-maven-project"
draft: false
lastmod: "2015-05-14T17:28:46Z"
id: 2211150
url: "https://peter8015.iteye.com/blog/2211150"
---

原文：http://www.csdn123.com/html/exception/552/552541\_552540\_552547.htm

 

注意：先安装第3步，再第2步，否则报错。

 

 

Eclipse Maven Svn整合

最近想工作之余写点测试demo，习惯了公司的开发环境，便决定自己搭建开发环境，首先是找到好用的eclipse，就是能够使用eclipse创建maven project工程，该工程能够被eclipse的tomcat识别为web project，直接部署运行，并能够提交到svn后使用check out as maven proect检出项目。

开始使用的是eclipse3.7，经过一番周折还是没能够安装完整的maven插件，创建的maven工程不是web project，如果自己转提交到svn再check下来又变成普通的maven project，后来发现eclipse4.3集成了maven插件，下载下来发现创建的maven project能被自动转化为web project，正好满足需求，但是安装svn插件后确没有check out as maven project，归结起来还是插件不全，如是去找各种帖子，最后发现关键原因是因为提供m2e-extra更新的网址 http://m2eclipse.sonatype.org/sites/m2e-extras 早就关闭了，经过零零散散的拼凑，最后找到了解决方案，步骤如下：

1. 下载eclipse4.3 javaee 版本，地址 http://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/keplersr1 

2. 安装gef 插件，使用eclipse的更新步骤：Help &gt;&gt;  Install New Software &gt;&gt; add，地址为http://download.eclipse.org/tools/gef/updates/interim/ ，直接按照提示安装就可以了，如果提示插件没有证书是否安装，选择ok就可以

![](http://www.csdn123.com/html/exception/showImage.php?url=http%3A%2F%2Fwww.myexception.cn%2Fhtml%2Fexception%2FshowImage.php%3Furl%3Dhttp%3A%2F%2Fwww.myexception.cn%2Fhtml%2Fexception%2FshowImage.php%3Furl%3Dhttp%3A%2F%2Fwww.myexception.cn%2Fhtml%2Fexception%2FshowImage.php%3Furl%3Dhttp%3A%2F%2Fwww.myexception.cn%2Fhtml%2Fexception%2FshowImage.php%3Furl%3Dhttp%3A%2F%2Fwww.myexception.cn%2Fimg%2F2014%2F05%2F07%2F1248181181)![](http://www.csdn123.com/html/exception/showImage.php?url=http%3A%2F%2Fwww.myexception.cn%2Fimg%2F2014%2F05%2F07%2F1248181182.jpg)

3\. 安装m2e-wtp插件，这个插件的作用是将maven project 自动转为web project，方便直接部署到eclipse的tomcat中，更新地址为**http://download.eclipse.org/m2e-wtp/snapshots/kepler**

**![](http://www.csdn123.com/html/exception/showImage.php?url=http%3A%2F%2Fwww.myexception.cn%2Fhtml%2Fexception%2FshowImage.php%3Furl%3Dhttp%3A%2F%2Fwww.myexception.cn%2Fhtml%2Fexception%2FshowImage.php%3Furl%3Dhttp%3A%2F%2Fwww.myexception.cn%2Fhtml%2Fexception%2FshowImage.php%3Furl%3Dhttp%3A%2F%2Fwww.myexception.cn%2Fhtml%2Fexception%2FshowImage.php%3Furl%3Dhttp%3A%2F%2Fwww.myexception.cn%2Fimg%2F2014%2F05%2F07%2F1248181181)**

**![](http://www.csdn123.com/html/exception/showImage.php?url=http%3A%2F%2Fwww.myexception.cn%2Fimg%2F2014%2F05%2F07%2F1248181183.jpg)**

4\. 安装subclipse 插件(即SVN插件)，更新地址 http://subclipse.tigris.org/update\_1.8.x

![](http://www.csdn123.com/html/exception/showImage.php?url=http%3A%2F%2Fwww.myexception.cn%2Fimg%2F2014%2F05%2F07%2F1248181184.jpg)

![](http://www.csdn123.com/html/exception/showImage.php?url=http%3A%2F%2Fwww.myexception.cn%2Fhtml%2Fexception%2FshowImage.php%3Furl%3Dhttp%3A%2F%2Fwww.myexception.cn%2Fhtml%2Fexception%2FshowImage.php%3Furl%3Dhttp%3A%2F%2Fwww.myexception.cn%2Fhtml%2Fexception%2FshowImage.php%3Furl%3Dhttp%3A%2F%2Fwww.myexception.cn%2Fhtml%2Fexception%2FshowImage.php%3Furl%3Dhttp%3A%2F%2Fwww.myexception.cn%2Fimg%2F2014%2F05%2F07%2F1248181181)

5\. 安装m2eclipse-subclipse，地址：http://nexus.tesla.io:8081/nexus/content/sites/m2e.extras/m2eclipse-subclipse/0.13.0/N/0.13.0.201303011221/

![](http://www.csdn123.com/html/exception/showImage.php?url=http%3A%2F%2Fwww.myexception.cn%2Fhtml%2Fexception%2FshowImage.php%3Furl%3Dhttp%3A%2F%2Fwww.myexception.cn%2Fhtml%2Fexception%2FshowImage.php%3Furl%3Dhttp%3A%2F%2Fwww.myexception.cn%2Fhtml%2Fexception%2FshowImage.php%3Furl%3Dhttp%3A%2F%2Fwww.myexception.cn%2Fhtml%2Fexception%2FshowImage.php%3Furl%3Dhttp%3A%2F%2Fwww.myexception.cn%2Fimg%2F2014%2F05%2F07%2F1248181181)![](http://www.csdn123.com/html/exception/showImage.php?url=http%3A%2F%2Fwww.myexception.cn%2Fimg%2F2014%2F05%2F07%2F1248181185.jpg)

 

好啦，大功告成，打开svn看看是不是有check out as maven project 了

![](http://www.csdn123.com/html/exception/showImage.php?url=http%3A%2F%2Fwww.myexception.cn%2Fhtml%2Fexception%2FshowImage.php%3Furl%3Dhttp%3A%2F%2Fwww.myexception.cn%2Fhtml%2Fexception%2FshowImage.php%3Furl%3Dhttp%3A%2F%2Fwww.myexception.cn%2Fhtml%2Fexception%2FshowImage.php%3Furl%3Dhttp%3A%2F%2Fwww.myexception.cn%2Fhtml%2Fexception%2FshowImage.php%3Furl%3Dhttp%3A%2F%2Fwww.myexception.cn%2Fimg%2F2014%2F05%2F07%2F1248181181)![](http://www.csdn123.com/html/exception/showImage.php?url=http%3A%2F%2Fwww.myexception.cn%2Fimg%2F2014%2F05%2F07%2F1248181186.jpg)

 

以上转自：

/html/exception/showImage.php?url=http://www.myexception.cn/html/exception/showImage.php?url=http://www.myexception.cn/html/exception/showImage.php?url=http://www.myexception.cn/html/exception/showImage.php?url=http://www.myexception.cn/html/exception/showImage.php?url=http://www.myexception.cn/img/2014/05/07/1248181181

其中第五步安装失败，应该是地址已经失效，使用下面这种方式可以正常安装

widows--&gt;preferences--&gt;maven--&gt;discovery--&gt;右边的 open catalog--&gt;只勾先extras，将maven，lifercycles这两年勾去掉，方便我们查找。找到m2e-subclipse，然后点击下一步，根据提示安装即可。