(Article) Converting Ant to Maven in NetBeans
Article: Converting Ant to Maven in NetBeans
After a good couple of days spent converting ant projects over to maven, here is what I consider the easiest method. This is using NetBeans 6.5rc1 but probably works in 6.1.
Here are the steps for converting an ant project to a maven project in NetBeans.
This presumes your ~/.m2/settings.xml is already set up (not shown here for security purposes) and you have installed the Netbeans maven2
plugin:
1. Open ant project
2. Create new maven project using the “Maven Quickstart Archetype”
3. Properties -> Sources -> Change to 1.6
4. pom.xml -> Add distribution management
<distributionManagement>
<repository>
<id>nexus</id>
<name>Internal Releases</name>
<url>YourInternalReleaseURL</url>
</repository>
</distributionManagement>
5. Files tab -> src/main -> add folder “resources”. This will create an “Other Sources/resources” entry in the project view...
Courtesy:- http://k3andme.wordpress.com/
- guru's blog
- Login to post comments
