Using maven instead of ant with SPRING, deploying and structure

I have a spring project and using ANT to compile/deploy my war to Tomcat. So basically it just creates a war file and moves it to tomcat folder.

folder structure is this:

        ALL MY SRC (JAVA) files
                ALL MY LIBRARIES
pom.xml // putting my pom.xml here

With ant I download all my libraries manually. Now as it seems, maven downloads all libraries automatically, thanks to pom.xml. Questions/problems:

  1. Must I change my folder structure with maven?
  2. Will maven include all downloaded libs to WAR? Is that default?
  3. When maven downloads its WARS, can it put all libraries to WEB-INF/lib? How?
  4. Does it make sense what I am doing, if no, then why?

Have few questions, because I have never ever used maven.


  1. Yes better change the structure, see the maven site. It saves a bit of hassle, should you start using maven-plugins with complex things like using XSLT to generate java sources. Also IDE support might be better. Like: src/main/java, src/test/java, src/main/resources.
  2. Yes.
  3. Yes. Automagically.
  4. Yes otherwise you should use Ivy with ant.

Need Your Help

IRAPIStream COM Interface in .NET

c# .net windows-mobile compact-framework rapi

I'm trying to use the OpenNETCF RAPI class to interact with a windows mobile device using the RAPI.Invoke() method.

ASP.NET SMTP and Gmail configuration smtp gmail

The question: Is it possible to configure multiple SMTP servers or update the SMTP object server information at runtime?

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.