Error on running PingPong Example
App Development5 posts483 views5 likesLast activity Nov 2020
LU
lubnavOP
Nov 2020when i try to run PingPong Example, im getting following error:
Unknown lifecycle phase ".mainClass=examples.pingpong.reactive.PingPongReactiveMain". You must specify a valid lifecycle phase or a goal in the format : or :[:]:. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources,
generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/LifecyclePhaseNotFoundException
CO
cocreature
Nov 2020Hi @lubnav, could you share the command you ran? I just tried following the instructions in the repository and it seems to work for me.
mvn compile
daml start --sandbox-port 7600 # in a separate terminal
mvn exec:java -Dexec.mainClass=examples.pingpong.reactive.PingPongReactiveMain -Dexec.args="localhost 7600"
LU
lubnav
Nov 2020same commands i tried. getting same error
CO
cocreature
Nov 2020I can reproduce your error if I add an incorrect space before .mainClass so -Dexec .mainClass=…. Try quoting it, it might be your shell splitting it up:
mvn exec:java '-Dexec.mainClass=examples.pingpong.reactive.PingPongReactiveMain' '-Dexec.args="localhost 7600"'
LU
lubnav
Nov 2020It worked. Thanks