问题
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