maven archetype:generate failure caused by org.apache.maven.plugin.MojoFailureException

心不动则不痛 提交于 2019-11-28 14:04:12

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 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.

Yes, its definitely the permission error. Spent 2 days on it and simply rectified it using sudo :D

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!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!