• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to use maven for the existed project

 
Nitin Tirunagari
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am Nitin and i have shifted from php to java recently, i had a question for you guys, Can i use maven for the project which was completely developed in eclipse IDE... i mean they use eclipse tomcat for compiling and more over does deployment using eclipse... what i want is use eclipse only as IDE and for deployment and building i want to use Maven.. so is there a way to do so.. please come up with an answer...

Thanks in advance..

Nitin
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch!

Sure, you can--but if the project doesn't follow the "Maven way" you're in for a world of hurt--it's easier to adopt things like the Maven standard directory structure than to try to make Maven work with the layout you already have.

If you're just looking for dependency management you could use Ant+Ivy, particularly if you already have an Ant buildfile.
 
Vijitha Kumara
Bartender
Posts: 3914
9
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nitin Tirunagari wrote:... what i want is use eclipse only as IDE and for deployment and building i want to use Maven.. so is there a way to do so.. please come up with an answer...

If you really really.... need to use Maven then you may start porting your existing source in to a Maven project created in eclipse then start adding your dependencies in to the pom.xml (I haven't tried this process myself, but it isn't impossible but need a bit of work as David said). You can use M2Eclipse to manage Maven inside Eclipse.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic