aspose file tools*
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 Java 8 in Action this week in the Java 8 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: 5779
    
    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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to choose filter number while creating the maven project?
 
Similar Threads
[Maven2] Portlet + MyFaces. What archetype to use?
maven arhtype take a lot of time
Application properties file
maven struts2 plugins
unable to create project from archetype