How to add maven nature to eclipse project
Today I has situation when I must change project manage from standard Eclipse java project to maven project. Because I didn’t want to change directory structure so I create pom.xml and add code like this:
Listing 1. additional code in pom.xml
<build> <sourceDirectory>src/</sourceDirectory> </build>
So. Because I can add target directory to svn:ignore I need only this one additional line in my pom.xml.
You should remember that maven use Convention Over Configuration principle but You can reconfigure all parameters if You want.











