Windows console: Maven archetype list is too long

JohnJohnJohn picture JohnJohnJohn · May 1, 2011 · Viewed 8.5k times · Source

Problem: List generated by 'mvn archetype:generate" is too long for windows console to display (list gets cut off at about 200-th item

I tried learning it from the 30 minute tutorial from the homepage, but the first commands related to archetype generation generated errors that led me to topics about the tutorial being faulty AND the mvn archetype:generate command, which works without errors but is just too long for the Windows console to display it all.

Is it someway possible to see the list of archetypes from the net, increase consoles history or do anything for that matter?

Answer

Mark Pope picture Mark Pope · May 1, 2011

Add > output.txt to the end of your command:

mvn archetype:generate > output.txt

This will redirect standard out into a file called output.txt