Archetype filter on the Maven command line with archetype: generate

When trying to generate a Maven project from an archetype (using mvn archetype:generate), the command returns lots of archetypes.

Is there a way to filter archetypes by word (contained in groupId or artifactId)?

I know that you can really create a project with a specific archetype, with arguments like -DgroupID=org.domain -DartifactId=sample, but this is not what I'm looking for.

+5
source share
1 answer

Ok A which has been sent and must be enabled in the Maven archetype plug-in version 2.1.

Edit:

maven-archetype-plugin 2.1. .

mvn archetype:generate -Dfilter=org.apache:struts

a groupId, org.apache AND an artifactId, struts

+11

All Articles