Error when running mvnw.cmd from windows

304 views
Skip to first unread message

James Bond

unread,
Sep 14, 2021, 12:49:54 PM9/14/21
to pwm-general
Hi, I am attempting to compile a .war file using mvnw.cmd in windows but am running into the following error:

[INFO] PWM Password Self Service .......................... SKIPPED
[INFO] PWM Password Self Service: Server JAR .............. SKIPPED
[INFO] PWM Password Self Service: Angular Client JAR ...... SKIPPED
[INFO] PWM Password Self Service: Server WAR .............. SKIPPED
[INFO] PWM Password Self Service: Executable Server JAR ... SKIPPED
[INFO] PWM Password Self Service: Data Service WAR ........ SKIPPED
[INFO] PWM Password Self Service: REST Test Server WAR .... SKIPPED
[INFO] PWM Password Self Service: Docker Image ............ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.328 s
[INFO] Finished at: 2021-09-14T11:46:49-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. 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:


I see quite a few goals in the pom file but am confused why this is required to be modified when it should work out of the box from my understanding? Any direction or help would be greatly appreciated.

Jason Rivard

unread,
Sep 14, 2021, 1:51:56 PM9/14/21
to pwm-general
You need to specify a maven target like 'package' or 'verify', Like:

'mvnw.cmd verify'
Message has been deleted

James Bond

unread,
Sep 14, 2021, 3:20:15 PM9/14/21
to pwm-general
Thanks Jason,

I was right click running as admin *smh*, running the file with the goal argument after the batch file named worked.

Reply all
Reply to author
Forward
0 new messages