Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I was looking for the same solution and I seem to find a usable one, though it may not suit everyone.</p> <p>The idea is to create a local archetype catalog and specify all archetypes you may need there. This way you'll get only choices you're interested.</p> <p>Of course you may find you'll need to add new archetype there, then you'll need either to fallback to normal use of remote repository or add it by hand.</p> <p>The recipe:</p> <ol> <li><p>Create the initial local catalog with</p> <p><code>mvn archetype:crawl -Dcatalog=~/.m2/archetype-catalog.xml</code></p></li> <li><p>Pass catalog list from only you're local catalog to archetype:generate</p> <p><code>mvn archetype:generate -DarchetypeCatalog=local</code></p></li> </ol> <p>You will see something like this:</p> <pre><code>grim@blackbox:~/projects$ mvn archetype:generate -DarchetypeCatalog=local [ ...bullshit... ] Choose archetype: 1: local -&gt; maven-archetype-quickstart (quickstart) 2: local -&gt; maven-archetype-archetype (archetype) 3: local -&gt; maven-archetype-webapp (webapp) Choose a number: 1: </code></pre> <p>You can make the option permanent by specifying it in your settings.xml:</p> <pre><code>&lt;profiles&gt; &lt;profile&gt; &lt;id&gt;dev&lt;/id&gt; &lt;activation&gt; &lt;activeByDefault&gt;true&lt;/activeByDefault&gt; &lt;/activation&gt; &lt;properties&gt; &lt;archetypeCatalog&gt;local&lt;/archetypeCatalog&gt; &lt;/properties&gt; &lt;/profile&gt; </code></pre> <p></p> <p>Now when you want to fallback to usual Maven catalog list, run it as </p> <pre><code>mvn archetype:generate -DarchetypeCatalog=remote,local </code></pre> <p>and you will have all archetypes available.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload