Windows console: Maven archetype list is too long

2020-06-08 13:34发布

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?

2条回答
够拽才男人
2楼-- · 2020-06-08 13:57

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.

查看更多
成全新的幸福
3楼-- · 2020-06-08 14:05

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

查看更多
登录 后发表回答