I'm trying to learn Maven following this Getting Started Guide.
I've Apache Maven 3.0.1 on Linux. I've issued the following command to create a first project:
yes | mvn archetype:generate \
-DarchetypeGroupId=org.apache.maven.archetypes \
-DarchetypeArtifactId=maven-archetype-quickstart \
-DgroupId=org.obliquid.helpers \
-DartifactId=obliquid-helpers \
-Dversion=0.1
However, in the output I read:
[INFO] project created from Old (1.x) Archetype in dir: ...
How can I use a current version for the Archetype? Is the guide that I'm reading outdated?
As a sub-question, I've noticed that in the pom.xml mentions junit version 3.8.1, while I'd like to use junit version 4.8.x - How to change that? I can just change the version number in the XML?
Is there a better guide or book that you can suggest?