- I started doing this tutorial, on win 8.1.
- I downloaded JDK8 and Maven.
I set up Maven (added mvn to PATH, set JAVA_HOME).
Output from
mvn --version
:Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T18:41:47+02:00) Maven home: C:\apache\apache-maven-3.3.9\bin\.. Java version: 1.8.0_122-ea, vendor: Oracle Corporation Java home: C:\Program Files\Java\jdk1.8.0_122\jre Default locale: en_US, platform encoding: Cp1255 OS name: "windows 8.1", version: "6.3", arch: "amd64", family: "dos"
Created folder for the project.
tried to run this command (copy-paste from the tutorial, ignore the line breaks in SO):
mvn archetype:generate -DarchetypeArtifactId=maven-archetype-webapp -DarchetypeGroupId=org.apache.maven.archetypes -DinteractiveMode=false -DgroupId=com.example.employees -DartifactId=employees-app -DarchetypeVersion=1.0
- output from command: pastebin
- summary of the output:
No plugin found for prefix 'archetype' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (C:\Users\yogevl\.m2\repository), central (https://repo.maven.apache.org/maven2)] -> [Help 1]
Answers in SO assumes I have a proxy. I don't, I checked it here. Plus, I am able to get to the repo using Chrome. Another answer advised to run the cmd as an Administrator. I did - same result.
I also followed the link at the end of the output:
- Don't think so, because I copy-pasted from the toturial.
- Ditto.
- Ditto.
- Not sure about this one - the settings.xml is the default file. Do I need to change it?
- Same as 1-3.
Thank you for your help!