[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

猜你喜欢

转载自www.cnblogs.com/zienzir/p/9123086.html