Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows console: Maven archetype list is too long

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?

like image 647
JohnJohnJohn Avatar asked May 01 '11 10:05

JohnJohnJohn


People also ask

What archetype should I select in Maven?

If you want a web application, use maven-archetype-webapp, or if you want a simple application use maven-archetype-quickstart. They are useful because you will be able to expand them with no problem. Note that this is in the Eclipse plugin by default (at least it is today).

What is Maven archetype for spring boot?

Overview. A Maven archetype is an abstraction of a kind of a project that can be instantiated into a concrete customized Maven project. In short, it's a template project template from which other projects are created.

What is Mvn archetype?

In short, Archetype is a Maven project templating toolkit. An archetype is defined as an original pattern or model from which all other things of the same kind are made. The names fits as we are trying to provide a system that provides a consistent means of generating Maven projects.


2 Answers

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

like image 196
Mark Pope Avatar answered Oct 12 '22 11:10

Mark Pope


Another possible solution would be to increase the Buffer and or / window-size of the console.

Right click on the frame and choose Defaults - this entry sets the default values for all console windows. In Windows 7 click on the layout-tab and increase the "Screen Buffer Size" height

If you choose the entry Properties in the context menu, these settings only apply to the current instance of the console.

like image 38
Zobbl Avatar answered Oct 12 '22 11:10

Zobbl