Maven Project in Eclipse - Initial Setup

£可爱£侵袭症+ 提交于 2020-01-14 05:50:10

问题


I am trying to follow some existing tutorials on Hadoop that I found online. I have installed cloudera and am using it as the setup environment for all of the work. However when I try to create a Maven project in Eclipse, I end up having issues referencing to the quickstart archetype. The error I get is the following:

'Creating maven-archetype-quickstart' has encountered a problem.

Could not resolve archetype org.apache.maven.archetypes:maven-archetype-quickstart:RELEASE from any of the configured repositories

The issue seems to be linked with the ~/.m2/ folder. My settings.xml file has been set up per the tutorial and links to the online repositories.

Could not write artifact lastUpdated status /home/cloudera/.m2/repository/org/... (Permission denied)

Please note that I created the whole directory .m2/ as it did not exist. I am running out of ideas, maven is clearly installed on the VM. I am just unsure why everything is referenced back to ~/.m2/ which did not exist and had to be created (and therefore isn't populated).

Whatever help would be appreciated, thanks again for your time!

来源:https://stackoverflow.com/questions/22795778/maven-project-in-eclipse-initial-setup

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