Please refer the link: https://docs.xebialabs.com/xl-deploy/how-to/create-a-deployment-package-using-the-command-line.html
Collect the EAR file and the configuration directory and store them in the directory:
cp /some/path/petclinic-1.0.ear petclinic-package
cp -r /some/path/conf petclinic-package
Now what is cp? Java command? Maven command? Windows command?
'cp' is not recognized as an internal or external command, operable program or batch file.