Exchange 2.0 编译报错:Failed to execute goal on project nebula-exchange

看下你的maven的镜像配置,mirror配置中的mirrorOf的值是不是*

<mirror>
        <id>alimaven</id>
        <mirrorOf>central</mirrorOf>
        <name>aliyun maven</name>
        <url>http://maven.aliyun.com/nexus/content/repositories/central/</url>
    </mirror>

如果是*,需要改成central; 或者改成*,!SparkPackagesRepo,!bintray-streamnative-maven

原因:
exchange的pom.xml中有两个依赖包是不在central仓库的,pom.xml中配置了这两个依赖所在的仓库地址。 如果你maven中配置的镜像地址对应的mirrorOf值是*,那么所有依赖都会在中央仓库下载,就下载不到那两个依赖了。