I found below mentioned post to be highly useful to get my queryproblem resolved
http://o7planning.org/web/fe/default/en/document/5189/install-maven-into-eclipse#a5303
This site gives step-by-step instructions for Eclipse 4.5 Mars/4.4 Luna, with lots of screenshots. Detailed instructions on installing as an embedded module or a standalone application and then configuring Eclipse to use Maven are given.
When I followed the instructions I was able to use the configuration I set up to get my Jenkins builds working.