1. 下载jar包
1.1 常用jar包下载地址
http://mvnrepository.com/
http://search.maven.org/
http://repository.sonatype.org/content/groups/public/
http://people.apache.org/repo/m2-snapshot-repository/
http://people.apache.org/repo/m2-incubating-repository/
1.2 下载jar包
1)搜索目标jar包
2)找到对应的版本并下载
3)maven添加jar包命令构建
mvn install:install-file -Dfile=“下载后的jar包路径\xxx.jar(到jar包的名称)” -DgroupId=上图中的groupId -DartifactId=上图中的artifactId -Dversion=上图中的version -Dpackaging=jar
真实命令
mvn install:install-file -Dfile=“C:\Users\xh\Desktop\新建文件夹\flink-csv-1.10.2-sql-jar.jar” -DgroupId=org.apache.flink -DartifactId=flink-csv -Dversion=1.10.2 -Dpackaging=jar
4)进入windows命令行输入上一步构建的命令