mvn_clean_deploy出错
一、执行命令:mvn clean deploy -Dmaven.test.skip=true
报错如下:
1 | [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project myproject: Deployment failed: repository element was not specified in the POM inside distributionManagement element or in -DaltDeploymentRepository=id::layout::url parameter -> [Help 1] |
二、原因:
pom里已有distributionManagement元素:
1 | <distributionManagement> |
但当前的pom的version为0.0.6,是release而非snapshot,所以其与distributionManagement的元素不匹配导致如上错误。