如何在现有的maven项目中使用Dataflow?

时间:2023-01-13 09:50:07

What dependencies and other modifications do I need to make to my pom file so that I can start using the Dataflow SDK with my existing project?

我需要对我的pom文件进行哪些依赖性和其他修改,以便我可以开始在现有项目中使用Dataflow SDK?

1 个解决方案

#1


2  

Add the following dependency to your pom file.

将以下依赖项添加到您的pom文件中。

<dependency>
  <groupId>com.google.cloud.dataflow</groupId>
  <artifactId>google-cloud-dataflow-java-sdk-all</artifactId>
  <version>[0.3.141216,)</version>
</dependency>

The [0.3.141216,) syntax means maven will pull in the latest version as long as its more recent than 0.3.141216. This means we will automatically stay up to date as the Dataflow team publishes updates to maven central.

[0.3.141216,]语法意味着maven将推出最新版本,只要它比0.3.141216更新。这意味着当Dataflow团队向maven central发布更新时,我们将自动保持最新状态。

If we don't want to automatically upgrade to the latest SDK every time we rebuild we can specify the version as

如果我们不想在每次重建时自动升级到最新的SDK,我们可以将版本指定为

<version>0.3.141216</version>

#1


2  

Add the following dependency to your pom file.

将以下依赖项添加到您的pom文件中。

<dependency>
  <groupId>com.google.cloud.dataflow</groupId>
  <artifactId>google-cloud-dataflow-java-sdk-all</artifactId>
  <version>[0.3.141216,)</version>
</dependency>

The [0.3.141216,) syntax means maven will pull in the latest version as long as its more recent than 0.3.141216. This means we will automatically stay up to date as the Dataflow team publishes updates to maven central.

[0.3.141216,]语法意味着maven将推出最新版本,只要它比0.3.141216更新。这意味着当Dataflow团队向maven central发布更新时,我们将自动保持最新状态。

If we don't want to automatically upgrade to the latest SDK every time we rebuild we can specify the version as

如果我们不想在每次重建时自动升级到最新的SDK,我们可以将版本指定为

<version>0.3.141216</version>