(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所在目录
扫描二维码关注公众号,回复:
5812352 查看本文章
命令行cd到该目录用mvn部署(确保GlassFish已启动,详见上一篇博客)
部署成功后
目录结构
访问服务器
使用服务器访问