---
title: "maven install报错"
author: "ych0108"
date: "2015-12-08T22:00:01Z"
tags: ["maven"]
categories: ["编程语言"]
slug: "maven-install"
draft: false
lastmod: "2015-12-08T22:03:21Z"
id: 2262741
url: "https://ych0108.iteye.com/blog/2262741"
---

今天遇到一问题，以前做的一项目，以前直接maven install没问题，今天一直报如下错误；而更为奇怪的是同样的项目拷贝到别的同事那里没有这个问题。
 **显示详细的报错信息：run as--->maven build...-->clean install -X 进入到调试模式
错误如下：
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 14.215s
[INFO] Finished at: Tue Dec 08 18:10:44 CST 2015
[INFO] Final Memory: 26M/384M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5:single (make-assembly) on project gz-realtime-analysis: Failed to create assembly: Error creating assembly archive jar-with-dependencies: error in opening zip file -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

解决方法：删除了本地用来存放jar包的资源库（D:\workBench\maven_repository），重新下一下jar包

走的弯路，换个eclipse导入项目也报同样的错误，锁定应该是maven全局setting.xml或maven jar包本地冲突或什么问题。但排查setting.xml没有问题，最后删除了所有jar包得新下载。