You have to use a classifier to attach supplemental artifacts to the project instead of replacing th

Failed to execute goal org.apache.maven.plugins:maven-jar-plugin:3.1.2:jar (default-jar) on project afm-starter-common: You have to use a classifier to attach supplemental artifacts to the project instead of replacing them. -> [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

缘由: mvn 建立 公共模块,这个公共模块里面有各种 常用依赖包,其他模块只要 引入 这个公共模块,就不需要 再设置依赖了。
模块内没有任何代码,只有 pom.xml

编译时发现报错。

fox.风

解决方法:模块下建立src/main/java/readme.rdsrc/main/resources/readme.rd文件,这个文件内容 直接为空,这里的作用是 占位作用,
建立完成后,重新编译 就不再报错了

©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页