所以我刚刚从EC2创建了一个
Linux实例,现在我正在尝试在其上安装AWS Java SDK.我在安装结束时运行mvn clean compile exec:java并得到这个:
[ec2-user@ip-xxx-xxx-xxx-xxx aws-java-sample]$mvn clean compile exec:java [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building aws-java-sample 1.0 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ aws-java-sample --- [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ aws-java-sample --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: x.xxx s [INFO] Finished at: xxxx-xx-xxTxx:xx:xx+xx:xx [INFO] Final Memory: M/xM [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:2.6:resources (default-resources) on project aws-java-sample: Cannot create resource output directory: /home/ec2-user/aws-java-sample/target/classes -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors,re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions,please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
我在Stack Overflow上看到了与此类似的问题,但那是使用Windows作为我使用Linux实例的主机.另外,答案涉及使用Eclipse进行配置,我没有使用它.我不确定为什么它表现得像这样,也不知道如何解决它.
解决方法
原文地址:https://www.jb51.cc/java/129506.html
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。