Maven程序集插件无法执行

时间:2012-04-23 17:51:08

标签: maven

我在尝试“mvn package”后收到此消息。似乎检索谷歌收藏罐有问题,但我不确定这是否是唯一的问题。

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.3:single (make-assembly) on project recommender:
  Execution make-assembly of goal org.apache.maven.plugins:maven-assembly-plugin:2.3:single failed:
  Plugin org.apache.maven.plugins:maven-assembly-plugin:2.3 or one of its dependencies could not be resolved:
  Failed to collect dependencies for org.apache.maven.plugins:maven-assembly-plugin:jar:2.3 ():
  Failed to read artifact descriptor for com.google.collections:google-collections:jar:1.0:
  Could not transfer artifact com.google.collections:google-collections:pom:1.0 from/to central (http://repo1.maven.org/maven2): 
  Specified destination directory cannot be created: /Users/danquach/.m2/repository/com/google/collections/google-collections/1.0 -> [Help 1]

1 个答案:

答案 0 :(得分:1)

原始错误应该是一个本地问题:

Specified destination directory cannot be created:
/Users/danquach/.m2/repository/com/google/collections/google-collections/1.0
  • 你的车满了吗?
  • 您是否具有此路径的写入权限?

您可以尝试创建/Users/danquach/.m2/repository/com/google/collections并再次调用maven。