I have installed maven 2 and following the tutorial as mentioned in the below link
maven.apache.org/guides/getting-started/maven-in-five-minutes.html
But whi
If you encounter this error while using an IDE (such as Eclipse) then close and reopen the IDE and try again.
I received this error (Error merging velocity templates) on Windows 10 using Eclipse after creating then deleting a project into the target folder, then creating my Maven project into the target folder. First, I tried relaxing security on the folder via my Admin account -- but, I was denied access! Finally, after closing Eclipse I saw the folder vanish in Windows Explorer.
I assume that my IDE was exclusively holding the handle for the folder, so it is generally worth noting on Windows that you may have to close other programs (or restart) to fix this issue.