views:

46

answers:

2

How to convert a Ant project to Maven project? A sample project that would link (a Wicket project)

Thanks

+1  A: 

http://www.sonatype.com/people/2009/04/how-to-convert-from-ant-to-maven-in-5-minutes/

I don't know what your ant script looks like, but assuming its a basic script for building, you will need to create a pom.xml file for your project, add your dependencies, and then build it via maven.

Steven Benitez
+1  A: 

The nice part of using maven is that most standard stuff works automatically once you do things the maven way. For a simple webapp:

  1. Create a pom with groupId, artifactId and version (packaging: war)
  2. Add the required dependencies to the pom
  3. move the java sources to src/main/java,resources to src/main/recources and webapp content to src/main/webapp, test content to src/test/java and src/test/resources
  4. set the compiler compliance version using the maven compiler plugin

That should get you up 'n' running.

seanizer