This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes How to choose filter number while creating the maven project? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "How to choose filter number while creating the maven project?" Watch "How to choose filter number while creating the maven project?" New topic
Author

How to choose filter number while creating the maven project?

Rakesh shankar
Greenhorn

Joined: Nov 12, 2010
Posts: 14
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.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

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]


JBoss In Action
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How to choose filter number while creating the maven project?
 
Similar Threads
maven struts2 plugins
maven arhtype take a lot of time
Application properties file
unable to create project from archetype
[Maven2] Portlet + MyFaces. What archetype to use?