Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java/tools-docs: added how to compile flink #136

Merged
merged 1 commit into from
Dec 15, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions docs/nebula-flink/nf-ug-compile.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# 编译 Nebula Flink Connector

逐行运行以下命令编译 Nebula Flink Connector。

```bash
$ git clone -b v1.0 https://github.com/vesoft-inc/nebula-java.git
$ cd nebula-java/tools/nebula-flink
$ mvn clean compile package install -Dgpg.skip -Dmaven.javadoc.skip=true
```

编译成功后,您可以在 `nebula-flink/target/` 目录下看到 `nebula-flink-1.x.y.jar` 文件,如下所示。将这个文件复制到本地 Maven 库的 `com/vesoft/nebula-flink/` 目录中。

> **说明**:JAR 文件版本号会因 Nebula Java Client 的发布版本而异。您可以在 [nebula-java 仓库的 Releases 页面](https://github.com/vesoft-inc/nebula-java/releases "点击前往 GitHub 网站") 查看最新的 v1.x 版本。

```text
.
├── classes
├── generated-sources
├── generated-test-sources
├── maven-archiver
├── maven-status
├── nebula-flink-1.x.y-sources.jar
├── nebula-flink-1.x.y-test-sources.jar
├── nebula-flink-1.x.y-tests.jar
├── nebula-flink-1.x.y.jar
├── original-nebula-flink-1.x.y.jar
├── surefire-reports
└── test-classes
```