(1)clone
https://github.com/javaee/tutorial-examples
点击Clone or download获取URL:https://github.com/javaee/tutorial-examples.git
在命令行中
git clone https://github.com/javaee/tutorial-examples.git
会在当前目录得到一个克隆仓库
(2)build hello1
修改上图pom.xml中的glassfish.home.prefix为你的GlassFish安装目录
hello1所在目录
命令行cd到该目录用mvn部署(确保GlassFish已启动,详见上一篇博客)
部署成功后
目录结构
访问服务器
使用服务器访问