---
title: "maven repository损坏导致eclipse无法将web工程发布到tomcat"
author: "kabike"
date: "2014-09-17T16:07:21Z"
tags: ["maven"]
categories: ["开源软件"]
slug: "maven-repository-eclipse-web-tomcat"
draft: false
lastmod: "2014-09-17T16:07:40Z"
id: 2117425
url: "https://kabike.iteye.com/blog/2117425"
---

在eclipse中建立的maven的web工程,发布到tomcat中时报错


> Publishing failed
> Could not publish to the server.
> java.lang.IndexOutOfBoundsException


看了[这篇文章](http://stackoverflow.com/questions/20145399/eclipse-tomcat-7-java-lang-indexoutofboundsexception-on-publish),发现是maven的repository里有文件损坏了