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.
Yes, its definitely the permission error. Spent 2 days on it and simply rectified it using sudo :D
I had also faced the same issue, still I had all the required permissions to create the folder and files. But it turned out that there was an error in archetype.xml - I was trying add a folder without any files in it -
<testResources>
<resource>src/test/resources/</resource>
</testResources>
After correcting archetype.xml, I got the build succeeded.
It looks like there is a problem with folder access.. Check if the folder where your are trying to create a project is write protected? If it is so, then change its permission to 777 and check if it works.
I had the same error :D, and what I did was modifying the permission of the folder in which I was creating my project folder (in you case 'my-app'). Indeed, I was just following the maven tutorial's guidelines when I came into this error.
Changing '/usr/local/apache-maven/' folder permission to 775 or to 777 should make it!