我已经构建了Flink的快照版本,并希望将其部署到我的私有nexus存储库。我尝试在pom.xml中添加以下配置
<distributionManagement>
<repository>
<id> botech-common-release</id>
<name> Botech Common Release</name>
<url> http://192.168.3.249:8081/repository/botech-common-release/</url>
</repository>
<snapshotRepository>
<id>botech-common-snapshots</id>
<name>Botech Common Snapshots</name>
<url>http://192.168.3.249:8081/repository/botech-common-snapshots/</url>
</snapshotRepository>
</distributionManagement>然后运行'mvn部署‘命令。不幸的是,maven仍然试图将Flink的快照部署到官方存储库中:
未能执行项目力-阴影上的目标org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (默认-部署):未能部署工件:无法将工件org.apache.flink:force-shading:jar:1.12-20210110.113153-389从apache.snapshots.https (https://repository.apache.org/content/repositories/snapshots)传输到apache.snapshots.https (https://repository.apache.org/content/repositories/snapshots):未能使用状态代码401 ->帮助1传输文件https://repository.apache.org/content/repositories/snapshots/org/apache/flink/force-shading/1.12-SNAPSHOT/force-shading-1.12-20210110.113153-389.jar
如何更改Flink的目标snapShot存储库?
发布于 2021-01-18 06:22:30
将相同的配置添加到显示力模块的pom中。
https://stackoverflow.com/questions/65652892
复制相似问题