As you can see the error below, mvn command is executed in the Maven 
installation path, but I specify the project as custom workspace in 
C:\OTPPB2015\Workspace\Maven\simple. Just want to do a simple demo so it's not 
in any source control system. How can I let Jenkins execute the mvn command 
inside the workspace?



Building on master in workspace C:\OTPPB2015\Workspace\Maven\simple
[simple] $ cmd.exe /C '"C:\Tools\apache-maven-3.3.3\bin\mvn.cmd deploy && exit 
%%ERRORLEVEL%%"'
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.075 s
[INFO] Finished at: 2015-11-06T17:30:18-05:00
[INFO] Final Memory: 5M/245M
[INFO] 
------------------------------------------------------------------------[ERROR] 
The goal you specified requires a project to execute but there is no POM in 
this directory (C:\OTPPB2015\Workspace\Maven\simple). Please verify you invoked 
Maven from the correct directory. -> [Help 1]

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/129aa567-d579-4526-af82-2c9743604a76%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to