I am a Solivagant
Lofter    Posts     新文章     文章管理     新日记     日记管理

[Maven] guide: maven in 5 minutes

 ran    during my bad network connection, it' s more that just 5 minutes.

1. execute "mvn archetype:generate" wait several minutes or just download the archetype-catalog.xml file into local.

have no idea where to put it,

But when you stuck in the generating command.

you can right click the prompt.

and thus it invoke the local catalog.xml file.

2.choose 1195 for quickstart archetype or 1200 for webapp archetype.

3.confirm the groupid, artifact id and package name.etc.

4. finally, enter Y to finish it.(default is Y means yes).

5. compile it: using command : mvn compile

 

6. ran java

posted @ 2018-06-01 19:01  宛如ZZ  阅读(177)  评论(0编辑  收藏  举报