Eclipse:exec.args 中的 Maven 多参数字符串
Eclipse: maven multiple argument string in exec.args
我想 运行 在 Eclipse 中执行如下命令:
mvn -Pdataflow-runner compile exec:java \
-Dexec.mainClass=org.apache.beam.examples.WordCount \
-Dexec.args="--project=<PROJECT_ID> \
--stagingLocation=gs://<STORAGE_BUCKET>/staging/ \
--output=gs://<STORAGE_BUCKET>/output \
--runner=DataflowRunner"
主要是exec.args字符串的问题。
如果我在 Eclipse 中使用 Dataflow SDK,我可以将字符串放在参数选项卡中:
--argument1=xxx --argument2=yyy
问题是当我尝试将 maven 与以下 Eclipse 配置一起使用时:
我有一个错误:
Unable to parse command line options: Unrecognized option: --project=xxx
usage: mvn [options] [<goal(s)>] [<phase(s)>]
我也试过用“,”和“;”分隔参数
最后我解决了这个问题,在 Goals 字段中设置所有参数,而不是在参数的 table
中使用 exec.args
这是它的样子:
我想 运行 在 Eclipse 中执行如下命令:
mvn -Pdataflow-runner compile exec:java \
-Dexec.mainClass=org.apache.beam.examples.WordCount \
-Dexec.args="--project=<PROJECT_ID> \
--stagingLocation=gs://<STORAGE_BUCKET>/staging/ \
--output=gs://<STORAGE_BUCKET>/output \
--runner=DataflowRunner"
主要是exec.args字符串的问题。
如果我在 Eclipse 中使用 Dataflow SDK,我可以将字符串放在参数选项卡中:
--argument1=xxx --argument2=yyy
问题是当我尝试将 maven 与以下 Eclipse 配置一起使用时:
我有一个错误:
Unable to parse command line options: Unrecognized option: --project=xxx
usage: mvn [options] [<goal(s)>] [<phase(s)>]
我也试过用“,”和“;”分隔参数
最后我解决了这个问题,在 Goals 字段中设置所有参数,而不是在参数的 table
中使用 exec.args这是它的样子: