KeyWord:
1. Maven compile
2. maven package
3. java -jar target/iotx-xxxx-client-1.0.5.jar
Maven环境搭建
https://www.cnblogs.com/fnng/archive/2011/12/02/2272610.html
Maven编译
Maven compile
Maven部署到服务器
https://blog.youkuaiyun.com/xibei19921101/article/details/108384440
FAQ:
- 解决 Could not find artifact com.alibaba:fastjson:jar:1.2.68.noneautotype in central (https://repo.maven.apache.org/maven2)
通过登录网址后查询可知:
https://repo.maven.apache.org/maven2/
- 解决
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<mainClass>com.csrcb.AppStart</mainClass>
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>