Home > Back-end >  Cannot download the SNAPSHOT package for compiling NebulaGraph Exchange
Cannot download the SNAPSHOT package for compiling NebulaGraph Exchange

Time:01-05

Background:

I'm running the Nebula Graph database on AWS and trying to do some performance tests. Before that, I need to import data sets into NebulaGraph, for which I am using the Spark-based data migration tool NebulaGraph Exchange.

I first used a version that was incompatible with my Spark version which is 2.4.8. Bumped into some issues.

Now I'm trying a compatible version nebula-exchange_spark_2.4-3.0-SNAPSHOT.jar, and I want to use the latest development version so I need to compile it. But, I cannot download the SNAPSHOT package and got the error message Could not find artifact com.vesoft:client:jar:xxx-SNAPSHOT.

If anyone knows how to solve this issue, please help.

CodePudding user response:

There is no local Maven repository for storing or downloading SNAPSHOT packages. The default central repository in Maven only stores official releases, not development versions (SNAPSHOT).

To solve the issue, add the following configuration in the profiles scope of Maven's setting.xml file:

  <profile>
     <activation>
        <activeByDefault>true</activeByDefault>
     </activation>
     <repositories>
        <repository>
            <id>snapshots</id>
            <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
            <snapshots>
               <enabled>true</enabled>
            </snapshots>
      </repository>
     </repositories>
  </profile>
  • Related