java – maven-resources-plugin:2.6 – 无法创建资源输出目录
发布时间:2020-05-24 12:11:36 所属栏目:Java 来源:互联网
导读:所以我刚刚从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...[IN
|
所以我刚刚从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进行配置,我没有使用它.我不确定为什么它表现得像这样,也不知道如何解决它. 解决方法我的情况下,当我在控制台中打开目标目录时出现此错误(因此maven无法删除它). 导航出目标文件夹允许我通过maven安装没有问题.(编辑:安卓应用网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- java – Netbeans:通过maven-shade-plugin处理项目的主要工
- 从Java中获取EnumSet的值
- java – 为什么list.sort不使用Optional API
- mybatis执行批量更新batch update 的方法(oracle,mysql两种
- 在Scripting java(javax.script)中导入一个类
- c# – 我可以执行多个与一个try块对应的catch块吗?
- java – 不支持的类:com.mediatek.common.telephony.IOnly
- OKHttp3(支持Retrofit)的网络数据缓存Interceptor拦截器的实
- 在linux服务器上安装Jenkins
- 在Java和C#中计算SHA-1哈希值
