Skip to content

Get Exchange

This topic introduces how to get the JAR file of Nebula Exchange.

Download the JAR file directly

The JAR file of Exchange Community Edition can be downloaded directly.

To download Exchange Enterprise Edition, get Nebula Graph Enterprise Edition Package first.

Get the JAR file by compiling the source code

You can get the JAR file of Exchange Community Edition by compiling the source code. The following introduces how to compile the source code of Exchange.

Enterpriseonly

You can get Exchange Enterprise Edition in Nebula Graph Enterprise Edition Package only.

Prerequisites

Steps

  1. Clone the repository nebula-exchange in the / directory.

    git clone -b v2.6 https://github.com/vesoft-inc/nebula-exchange.git
    
  2. Switch to the directory nebula-exchange.

    cd nebula-exchange/nebula-exchange
    
  3. Package Nebula Exchange.

    mvn clean package -Dmaven.test.skip=true -Dgpg.skip -Dmaven.javadoc.skip=true
    

After the compilation is successful, you can view a directory structure similar to the following in the current directory.

.
├── README-CN.md
├── README.md
├── pom.xml
├── src
│   ├── main
│   └── test
└── target
    ├── classes
    ├── classes.timestamp
    ├── maven-archiver
    ├── nebula-exchange-2.x.y-javadoc.jar
    ├── nebula-exchange-2.x.y-sources.jar
    ├── nebula-exchange-2.x.y.jar
    ├── original-nebula-exchange-2.x.y.jar
    └── site

In the target directory, users can find the exchange-2.x.y.jar file.

Note

The JAR file version changes with the release of the Nebula Java Client. Users can view the latest version on the Releases page.

When migrating data, you can refer to configuration file target/classes/application.conf.

Failed to download the dependency package

If downloading dependencies fails when compiling:

  • Check the network settings and ensure that the network is normal.
  • Modify the mirror part of Maven installation directory libexec/conf/settings.xml:

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

Last update: November 19, 2021
Back to top