Maven部署异常:on project standalone-pom: Cannot deploy artifact from the local repository解决方法

MAVEN部署异常

org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy-file (default-cli) on project standalone-pom: Cannot deploy artifact from the local repository:

后来才知道,自己一直在本地仓库去部署文档


可以修改mvn deploy:deploy-file 中的 -Dfile=生成文件路径位置

例如: -Dfile=C: agetdsp.0.0.1.jar

而非 -Dfile= C:mvn_repositorycomifuntimesdsp.0.1dsp-0.0.1.jar

原文地址:https://www.cnblogs.com/CnKker/p/maven.html