As follows, the first dependency is downloaded from mvnrepository.com
Then $MAVEN/conf/settings.xml configures mvnrepository.com
but it reports dependency not found.
What is going on?
The reason is that I encountered such a prompt when I used http access.
So after thinking about it, the final solution is to modify the mirror in settings.xml as follows.
Solution 1:
http://repo1.maven.org/maven2/
changed to
https://repo1.maven.org/maven2/
Solution 2 Search in
https://maven.aliyun.com/mvn/search and
found that the domestic Ali's library does not have the mirror version 1.11.2,
so put the original in pom.xml:
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-table_2.11</artifactId>
<version>1.11.2</version>
</dependency>
The reduced version is:
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-table_2.11</artifactId>
<version>1.7.2</version>
</dependency>
Can