Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maven project created from Old (1.x) Archetype

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?

like image 752
stivlo Avatar asked Jun 22 '11 08:06

stivlo


1 Answers

The version you are using as well as the guide you are referring is current enough. You can ignore the message. The project that is created does work fine with the latest maven.

As for junit, you can change the version of the dependency appropriately. The project that is created using archetype:generate is only an indicative one, which is meant to be customized.

In addition to what you are looking at, you could also look Maven: The Complete Reference

like image 132
Raghuram Avatar answered Nov 15 '22 17:11

Raghuram