File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Ant, Maven and Other Build Tools and the fly likes How to use maven for the existed project Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "How to use maven for the existed project" Watch "How to use maven for the existed project" New topic
Author

How to use maven for the existed project

Nitin Tirunagari
Greenhorn

Joined: Sep 09, 2010
Posts: 4
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

Joined: Sep 29, 2008
Posts: 12617

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

Joined: Mar 24, 2008
Posts: 3837

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.


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to use maven for the existed project