Refer to official usage
basic work
Add this plugin to build-plugins
<build>
<plugins>
<plugin>
<groupId>org.nutz.boot</groupId>
<artifactId>nutzboot-maven-plugin</artifactId>
<version>${nutzboot.version}</version>
</plugin>
</plugins>
</build>
1. Use the terminal to package the jar file in the idea
#首先进入nutzboot项目根目录(非parent)
cd /home/work/nutzboot-web
mvn clean package nutzboot:shade
#一番输出后,得到 nutzboot-web-1.0.jar
2. Copy nutzboot-web-1.0.jar to the deployment folder
#通过批处理或bash进入部署文件夹
cd /home/released/nutzboot-web
java -jar -Xmx512m -Xms512m -Dfile.encoding=UTF-8 nutzboot-web-1.0.jar
#启动完成
{{o.name}}
{{m.name}}