参见inotgaoshou的
eclipse3.6或myeclipse9离线方式安装文章maven3
http://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
分享到:
相关推荐
在这个"maven离线安装包(含环境配置文件)"中,我们主要关注的是Maven 3.6.0版本的离线安装及其环境配置。Maven 3.6.0是一个稳定且功能丰富的版本,为开发人员提供了许多改进和优化。 首先,我们需要了解Maven的...
采用在线安装maven m2e svn的插件总是一个特别头疼的过程,于是手动把三个的插件整理在一起 插件使用办法: 注意:新解压的Eclipse需要 先设置JAVA_HOME 插件适用版本:Eclipse3.6,Eclipse indigo ,Eclipse kepler...
在本文档中,主要介绍了JFinal3.6版本的离线版文档。JFinal是一个使用Java语言编写的高性能、高灵活度的Java Web框架。它具有MVC架构,支持热插拔式的插件扩展,以及可使用纯JDBC或者JPA/NBatis等ORM框架进行数据库...
**3.6 阿里巴巴 Java 开发规范插件安装** - 可以通过两种方式安装阿里巴巴 Java 开发规范插件: - 通过 Settings > Plugins 搜索 “Alibaba Java Coding Guidelines” 并安装。 - 或者下载插件离线包, 通过 ...
3. **Maven 3.6**:项目管理和构建工具,它管理项目的依赖关系,构建项目并执行测试。在本项目中,Maven用于自动化构建过程,确保所有依赖项正确无误。 4. **IDEA/Eclipse**:集成开发环境(Integrated Development...