• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 643
  • Last Modified:

maven approaches


i was reading about maven as below

Maven Project can be generated in two ways:-

Without argument( inside mvn archetype:generate )
With argument (inside mvn archetype:generate)

I wonder why we need maven. What are the advantages of it. What are above two approaches of creating maven project.

I downloaded maven 3.05 from

I gave command
mvn -version
it printed maven3.05

I created on folder called TestMaven in C drive.

I went to C:\TestMaven from windows command prompt on my windows 7 laptop.

I gave command ther saying

 mvn archetype:generate

I see .m2 folder created
I am gettign errors in command prompt as below

I see many
'Failed to retrieve plugin descriptor for org.apache.maven.plugins:mave.....'
also at the end

'No Plugin found for prefix 'archetype'
 mvn archetype:generate

I could not give below as next steps

Group Id
Artifact Id

Version  and

What for above definitions used?

Please advise on how to set up and run maven projects.

Any links resources ideas highly appreciated. Thanks in advance
  • 2
1 Solution
gudii9Author Commented:
>>>Without argument( inside mvn archetype:generate )
>>With argument (inside mvn archetype:generate)

when i gave command on the command prompt
 (without aruments inside archetype:generate like Archetype (this is project type by default it is no 16  i.e quickstart)
Group Id (package name)

Artifact Id (application name)

Version  and
i got error message as below.not sure what is the issue

C:\Users\mavenTests>mvn archetype:generate
[INFO] Scanning for projects...
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:mave
n-clean-plugin:2.4.1: Plugin org.apache.maven.plugins:maven-clean-plugin:2.4.1 o
r one of its dependencies could not be resolved: Failed to read artifact descrip
tor for org.apache.maven.plugins:maven-clean-plugin:jar:2.4.1
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-

I would like to know what is the difference between above two approaches and which one to use in which practical scenario. please advise
This is a warning, you can probably ignore it. Does it cause any problems?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now