maven打包错误

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-jar-plugin:2.4:jar (default-jar) on project xxxx: Error assembling JAR: com/example/C:\Users\Administrator\AppData\Roaming\Subversion not found. -> [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

原因分析:
从win10迁移到mac,idea配置直接导出然后导入mac版的idea,win版和mac版的配置是有点区别的。项目使用svn做为版本控制工具,代码直接从win10复制过来,使用maven构建war包时报上面的错误,解决方法把Subversion的Use custom configuration directory前面的勾去掉,改成idea默认的就好啦。

在这里插入图片描述

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐