---
title: "An internal error occurred during: “Updating Maven Dependencies”"
author: "coder"
date: "2016-06-19T20:30:45Z"
tags: []
categories: ["开源软件"]
slug: "an-internal-error-occurred-during-updating-maven-dependencies"
draft: false
lastmod: "2016-06-19T20:30:45Z"
id: 2305993
url: "https://coder.iteye.com/blog/2305993"
---

用sts写个spring boot示例代码，update project...的时候报错

```
An internal error occurred during: "Updating Maven Dependencies".
Lorg/codehaus/plexus/archiver/jar/JarArchiver;
```

 网上找的办法包括

1、在pom.xml文件里的maven-compiler-plugin插件里指定版本号  
2、将 \\.m2\\repository\\org\\codehaus\\plexus\\plexus-archiver 删掉只剩最新版本  
3、将 \\.m2\\repository\\org\\apache\\maven\\maven-archiver 删掉只剩最新版本

 

这些都试过，问题依旧，最后的终极方案：

干掉 \\.m2\\repository，然后再update project...

```
  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
[32m :: Spring Boot :: [39m      [2m (v1.3.5.RELEASE)
```