---
title: "eclipse3.6离线安装maven及问题处理"
author: "licoolxue"
date: "2012-02-27T18:28:13Z"
tags: []
categories: ["研发管理"]
slug: "eclipse3-6-maven"
draft: false
lastmod: "2012-02-27T18:28:13Z"
id: 1427000
url: "https://licoolxue.iteye.com/blog/1427000"
---

参见inotgaoshou的 eclipse3.6或myeclipse9离线方式安装文章maven3\[url]http://inotgaoshou.iteye.com/blog/978600\[/url] 安装后创建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 -&gt; \[Help 1] 原因是局域网代理设置导致的，虽然按照《maven实战》的说法设置C:\\Users\\用户名\\.m2\\repository的settings.xml文件的代理 \[code="xml"] my-proxy true http username password proxy.\*.* 80 local.net|some.host.com \[/code] 但是不可以，无奈将%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&gt;preferences&gt;Maven&gt;User Settings \[img]http://dl.iteye.com/upload/attachment/0063/8431/09e5b32b-83b1-3811-99b6-1f63c41c58c5.png\[/img] 指定正确的setting.xml文件位置，错误消失。 附件是m2eclipse离线插件的压缩文件