exchange 1.1.0 编译报错,找不到pulsar-spark-connector_2.11

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:48 min
[INFO] Finished at: 2021-02-08T10:58:28+08:00
[INFO] Final Memory: 22M/84M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project exchange: Could not resolve dependencies for project com.vesoft:exchange:jar:1.1.0: The following artifacts could not be resolved: io.streamnative.connectors:pulsar-spark-connector_2.11:jar:2.4.5, neo4j-contrib:neo4j-spark-connector:jar:2.4.5-M1: Could not find artifact io.streamnative.connectors:pulsar-spark-connector_2.11:jar:2.4.5

咨询过技术同学,这个问题不是 Nebula 的自身问题,是你的 Maven 配置不正确,建议你更改 maven 的 setting 文件,修改里面的 mirrorOf (修改方法自行百度和 Google 啦)

我是在maven官方仓库搜索,也找不到。
https://mvnrepository.com/search?q=io.streamnative.connectors&d=io.streamnative
https://mvnrepository.com/search?q=pulsar-spark-connector_2.11

建议你去搜下如何更改 Maven setting 文件的方式呀,以及网上搜下 Could not find artifact io.streamnative.connectors:pulsar-spark-connector_2.11:jar:2.4.5 的解决方法呀

找到一个非官方仓库,包含了pulsar-spark的 https://dl.bintray.com/streamnative/maven
下载离线jar包,修改exchange的pom文件配置该依赖为本地jar,已解决。

1赞

所以,看补充信息,你已经自行解决了这个问题是吗?点个赞 :+1:

据我所知 每个公司都有内部的maven repo

是的,我本地默认配置的公司内部源,获取不到,再改成了阿里和maven官方的,也都获取不到。
最后在GitHub上查到在这里有:https://dl.bintray.com/streamnative/maven
但这个网站目前不在公司可信域里。

https://mvnrepository.com/artifact/io.streamnative

这个试试呢

这里没有spark的,只有flink的

https://github.com/streamnative/pulsar-spark/tree/branch-2.4.5 或者你自己拉源码安装吧

我试了一下可以下载:
Downloaded from bintray-streamnative-maven: https://dl.bintray.com/streamnative/maven/io/streamnative/connectors/pulsar-spark-connector_2.11/2.4.5/pulsar-spark-connector_2.11-2.4.5.jar (36 MB at 6.7 MB/s)
[INFO]

浙ICP备20010487号