0

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

[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]
4

1 回答 1

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。

于 2012-04-23T17:57:26.970 回答