标签:art maven color code framework nbsp 守护 attribute tar
<build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> </plugins> </build> 如果没有,则执行jar包,会报错 执行:java -jar spring-boot-demo-0.0.1-SNAPSHOT.jar
报错:no main manifest attribute, in spring-boot-demo-0.0.1-SNAPSHOT.jar
构建:mvn install
构建跳过测试类 mvn install -Dmaven.test.skip=true
target目录下所有对应的jar包就是打包后项目
进到对应的target目录启动:java -jar xxx.jar 即可
nohup java -jar xxx.jar &
标签:art maven color code framework nbsp 守护 attribute tar
原文地址:https://www.cnblogs.com/chenyanbin/p/13232882.html