Issue
I want to run in Eclipse a command like this:
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"
The problem is mainly due to exec.args string.
If I use the Dataflow SDK in Eclipse I can put the string in the arguments tab:
--argument1=xxx --argument2=yyy
The problem is when I try to use maven with the following Eclipse configuration:
I have an error:
Unable to parse command line options: Unrecognized option: --project=xxx
usage: mvn [options] [<goal(s)>] [<phase(s)>]
I have also tried separating the arguments with "," and ";"
Solution
Finally I resolved this problem setting all the arguments in the Goals field instead of using exec.args in the parameter's table
This is how it looks like:
Answered By - IoT user