`

eclipse3.6离线安装maven及问题处理

阅读更多
参见inotgaoshou的
eclipse3.6或myeclipse9离线方式安装文章maven3http://inotgaoshou.iteye.com/blog/978600
安装后创建maven项目运行mvn compile报错
[ERROR] Plugin org.apache.maven.plugins:maven-clean-plugin:2.4.1 or one of its d
ependencies could not be resolved: Failed to read artifact descriptor for org.ap
ache.maven.plugins:maven-clean-plugin:jar:2.4.1: Could not transfer artifact org
.apache.maven.plugins:maven-clean-plugin:pom:2.4.1 from/to central (http://repo.
maven.apache.org/maven2): Connection to http://repo.maven.apache.org refused: Co
nnection timed out: connect -> [Help 1]

原因是局域网代理设置导致的,虽然按照《maven实战》的说法设置C:\Users\用户名\.m2\repository的settings.xml文件的代理

<!-- proxies
   | This is a list of proxies which can be used on this machine to connect to the network.
   | Unless otherwise specified (by system property or command-line switch), the first proxy
   | specification in this list marked as active will be used.
   |-->
  <proxies>
    <!-- proxy
     | Specification for one proxy, to be used in connecting to the network.
     |
	-->
    <proxy>
      <id>my-proxy</id>
      <active>true</active>
      <protocol>http</protocol>
      <username>username</username>
      <password>password</password>
      <host>proxy.*.*</host>
      <port>80</port>
      <nonProxyHosts>local.net|some.host.com</nonProxyHosts>
    </proxy>
    
  </proxies>

但是不可以,无奈将%M2_HOME%/conf/settings.xml的代理部分也设置了一下,该错误消失,maven可以正常使用。

使用m2eclipse创建maven项目时提示
提示:
could not resolve archetype
org.apache.maven.archetypes:maven-archetype-quickstart:RELEASE from any of the configured repositories
eclipse的windows>preferences>Maven>User Settings


指定正确的setting.xml文件位置,错误消失。

附件是m2eclipse离线插件的压缩文件
  • 大小: 61.6 KB
分享到:
评论
1 楼 wanshuang6265 2012-07-04  
[/u]e
e
wef
s
引用
vzxc  [u]sdasda csxc aswd1fwe
32fewq

相关推荐

    eclipse离线安装maven插件(m2e),maven插件离线安装包

    可是在网上又找不到对应的m2e包(我用的eclipse4.7),于是我决定将站点下的文件(很多)用爬虫爬下来,打包成离线插件包,再通过网上提供的多种离线安装插件的方法,我终于能自由的安装eclipse的maven插件了。...

    eclipse离线安装maven

    eclipse离线安装maven包支持eclipse-galileo版本以上,直接将features和plugins中的内容复制到eclipse安装位置对应的features和plugins内即可

    Eclipse MAVEN离线插件

    Eclipse离线安装Maven插件

    eclipse离线安装maven插件详解(内附maven插件包)

    详细讲解如何为电脑和Eclipse安装maven插件,并且包含maven的电脑安装包和Eclipse的maven插件包,maven插件安装位离线安装,因为在线安装很慢,而且容易出错,原创哦,哈哈

    Eclipse Indigo 离线安装maven插件m2eclipse

    旧版本eclipse,比如indigo版本要安装maven,旧的在线安装方式已经失效,因为依赖的zest和m2eclipse的location url都已经无法访问。所以从已经安装这两个包的eclipse中分离出离线的安装包,拷贝到对应的features和...

    idea Maven Helper离线安装包MavenRunHelper.jar.zip

    软件介绍: idea Maven Helper的本地离线安装包,这个能够解决idea插件无法在线安装的问题。IDEA在线安装Maven Helper插件有时候会很慢,需要先将下载的ZIP压缩包解压后再使用。

    eclipse离线安装maven插件包工具下载

    1. 在你的 eclipse 安装的根目录下创建两个文件夹:links,myplugins(名字可以随便取),我的这两个文件夹位于:D:/IDE/HELIOS/eclipse/(作为参考,下面用到) 2. 将下载的 eclipse-maven3-plugin.7z 解压缩到 ...

    eclipse安装maven插件需要包

    对于eclipse无法在线安装maven插件的解决办法。首先windows配置maven环境,然后在eclipse离线安装maven插件。具体方法可以在我的博客中看到

    离线安装MAVEN插件步骤

    离线安装MAVEN插件文档,支持MyEclipse。

    eclipse离线maven插件.rar

    Eclipse MAVEN安装离线插件下载,Eclipse MAVEN安装离线插件下载,Eclipse MAVEN安装离线插件下载,Eclipse MAVEN安装离线插件下载,Eclipse MAVEN安装离线插件下载,

    maven离线安装插件

    4、在links中新建maven.txt文件,内容为插件地址,例如:path=D:\eclipse_gzds\myplugins\maven(注意这里斜杠,不是反斜杠) 5、将maven.txt扩展名改为maven.lin 6、在eclipse根目录下找到eclipse.ini并打开,在...

    maven3.6maven3.6maven3.6

    maven3.6maven3.6maven3.6

    可用的eclipse maven 离线插件

    由于比较离线类的eclipse插件,但是最近maven的好多离线包链接不可用,令人很是郁闷。最近找了一个好用的基于eclipse的maven插件(plugins、features形式的) 在eclipse加添加离线插件,大家应该都懂得,这里不多说。 ...

    jenkins 离线安装maven插件集合jenkins-maven.zip

    将压缩文件解压到 /var/lib/jenkins/plugins/ 执行命令 systemctl restart jenkins 重启jenkin服务即可

    eclipse离线安装maven,svn

    ide eclipse myeclipse off-line maven svn

    eclipse maven 离线插件

    eclipse maven 离线插件

    idea离线导入maven项目

    idea离线导入maven项目

    m2eclipse+gef+svn插件离线安装包

    安装m2eclipse插件时会依赖gef插件和svn插件,压缩包内包含m2eclipse + gef + svn的全部插件安装包,可以直接离线安装,本人亲测,在Eclipse3.7下安装成功,可以新建Maven项目。 需要注意的是,在离线安装时,切记...

    maven3.6的安装包

    maven3.6的安装包,放在D盘解压即可,已经配置好resp资源包的地址

Global site tag (gtag.js) - Google Analytics