Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

How to choose filter number while creating the maven project?

Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am new to maven and wanted to create a spring project using maven. Below mentioned is the command I am using:

mvn archetype:generate -DgroupId=com.rakesh.core -DartifactId=Spring3Example -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false

It is asking for : Choose a number or apply filter (format: [groupId:]artifactId, case sensitive contains): :

What it is asking for? I tried all the numbers, I am getting this message:

Your filter doesn't match any archetype (hint: enter to return to initial list)

Please help.
Posts: 5856
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It should have listed a number of archetypes, numbering each one. It is asking you to enter the number for the archetype you want.

By the way, you don't have to use an archetype to create a Maven project, you an always create the directory structure and pom.xml manually. I usually just borrow a working pom.xml that contains most of what I want (a pom.xml from a Spring example should do it for you) and start from that.

[Interestingly, when I ran the command you did if ran to completion successfully. I ended up with a simple pom.xml that including only junit as a dependnecy, and a simple directory structure with a hello-world app. Base on the results, I don't think this archetype is worthwhile; instead follow my advice on creating your own pom and directory structure]
Tell me how it all turns out. Here is a tiny ad:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic