报错:Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.5.2:install (default-install)
解决方案:
1.把maven日志调整成debug模式,重新打包会发现maven报错日志
完整的报错信息:
Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to install metadata com.dffl:bl-mall-trade-impl/maven-metadata.xml: Could not parse metadata E:\workspace\maven\apache-maven-3.6.2-bin\apache-maven-3.6.2\repoitory\com\dffl\bl-mall-trade-impl\maven-metadata-local.xml: only whitespace content allowed before start tag and not \u0 (position: START_DOCUMENT seen \u0... @1:1)
2.找到本地仓库的该文件下的错误文件,并移除
3.把此文件进行删除,然后clean and install项目 ,项目打包成功