I have a web application that was developed in a different structure to the default archtype of the mevan. And i need to write a pom for it. Is it possible to build using pom with out changing the structure of the project or do I have to change the structure according to the mevan.
You can warp Maven to build with non-standard directory structures, but it's really expensive to do so.
It's better to re-arrange the project to be Maven-friendly. Aside from less frustration with the project itself, you gain the advantage that people will know where to find things when they work on the project as long as they're in the standard locations and not in some location unique to the project and/or shop.
An IDE is no substitute for an Intelligent Developer.
One of the principles that Maven tries to follow is ConventionOverConfiguration. You should follow the same convention in all your modules, instead of having each module have it's own way of doing it, and configuring the maven to fit to that module. THis way, your pom files are smaller, and also you can find what you need in the same place every time. You don't have to go triapsing through the pom file