报错:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy)
on project force-shading: Failed to deploy artifacts: Could not transfer artifact org.apache.flink:force-shading:jar:1.10
from/to apache.releases.https (https://repository.apache.org/service/local/staging/deploy/maven2): Transfer failed for
https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/flink/force-shading/1.10/force-shading-1.10.jar 401 Unauthorized -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy)
on project force-shading: Failed to deploy artifacts: Could not transfer artifact org.apache.flink:force-shading:jar:1.10 from/to
apache.releases.https (https://repository.apache.org/service/local/staging/deploy/maven2): Transfer failed for
https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/flink/force-shading/1.10/force-shading-1.10.jar 401 Unauthorized
只是在项目的pom中加入deploy是不够的,需要在tools/force-shading下面点的pom中也加入deploy,因为flink项目和force-shading模块的parent都是apache,默认会deploy到maven的中央仓库。
欢迎关注公众号:大数据开发者