flink 1.12本地编译报错解决--flink-fs-hadoop-shaded等

flink 1.12本地编译报错解决

  • 问题描述:
  • 原因分析:
  • 解决方案:
  • 解决方案:

问题描述:

  1. 找不到jar包 Failure to find org.apache.flink:flink-fs-hadoop-shaded:jar:tests:1.11-byted-SNAPSHOT in https://maven.byted.org/repository/public was cached in the local repository, resolution will not be reattempted until the update interval of bytedance-mirror has elapsed or updates are forced
Failure to find org.apache.flink:flink-fs-hadoop-shaded:jar:tests:1.11-byted-SNAPSHOT in https://maven.byted.org/repository/public was cached in the local repository, resolution will not be reattempted until the update interval of bytedance-mirror has elapsed or updates are forced

原因分析:

使用maven install时刚开始使用:
mvn clean install -Dmaven.test.skip=true


解决方案:

:使用 mvn clean install -DskipTests 解决

-DskipTests,不执行测试用例,但编译测试用例类生成相应的class文件至target/test-classes下。

-Dmaven.test.skip=true,不执行测试用例,也不编译测试用例类。

  1. 运行测试代码报错flink 1.12本地编译报错解决--flink-fs-hadoop-shaded等_第1张图片

解决方案:

flink 1.12本地编译报错解决--flink-fs-hadoop-shaded等_第2张图片
把maven profile中java11取消勾选后重新编译

你可能感兴趣的:(flink,flink,maven,bug)