I have added jetty mvn plugin code in my project pom.xml.
org.mortbay.jetty
I was running the command in the directory in which the project was present but the command worked fine after switching to the one directory up i.e in one in which all the files of the project were present.