简体   繁体   English

Maven程序集插件无法执行

[英]Maven assembly plugin fails to execute

I'm getting this message after attempting to "mvn package". 尝试“ MVN包”后,我收到此消息。 It seems like there's an issue with retrieving the google collections jar, but I'm not sure if that's the only problem. 检索Google Collections 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]

The original error should be a local problem: 原始错误应该是本地问题:

Specified destination directory cannot be created:
/Users/danquach/.m2/repository/com/google/collections/google-collections/1.0
  • Is your drive full? 您的驱动器已满吗?
  • Do you have write access to this path? 您对此路径具有写权限吗?

You can try to create /Users/danquach/.m2/repository/com/google/collections and call maven again. 您可以尝试创建/Users/danquach/.m2/repository/com/google/collections然后再次调用maven。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM