This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

creating a pom for an exsisting project

 
farhath farook
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18093
48
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This question comes up often. If you want to see all of the dire warnings on why this is not a good idea, search this forum for "maven directory structure".
 
Jayesh A Lalwani
Rancher
Posts: 2756
32
Eclipse IDE Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic