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

"Unknown lifecycle phase" Exception when executeing mvn exec:java command #19

Open
jxzhangxing opened this issue Jul 11, 2024 · 1 comment

Comments

@jxzhangxing
Copy link

jxzhangxing commented Jul 11, 2024

Ater I succeed to run
mvn clean install
I kept getting these errors when I execute
mvn exec:java -Dexec.mainClass="migrator.module.client.MigrateAccounts" -pl datamigrator-module
image

This is my version info:
image

Does anyone could help with this issue?
Thanks in advance.

@jxzhangxing
Copy link
Author

jxzhangxing commented Jul 17, 2024

I found out that when using windows, we should add double quote for "exec.mainClass" and "exec.args"
thanks to this post.
the command should be like this:
mvn exec:java -D"exec.mainClass"="migrator.module.client.ValidateExample" -D"exec.args"="Account" -pl datamigrator-module

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant