vscode for java-maven环境 win10-java环境-maven mvn

win10 mvn测试成功:

Maven安装与配置详解(Win10)_VitaminCi的博客-CSDN博客_win10安装maven

win10【Java】Maven的下载与配置(win10 JDK8

【Java】Maven的下载与配置(win10 JDK8 Eclipse)_亚卿的博客-CSDN博客

vscode for java spring boot:VsCode搭建Java开发环境(Spring Boot项目创建、运行、调试) - ice.ko - 博客园

maven打包java项目:maven通过命令行为SpringBoot项目打包_陈正的博客-CSDN博客

D:\code\xiandai\demo>

mvn -Dmaven.test.skip -U clean package  # 第一次编译会deownload很多东西,很长;下面是第二次编译


[INFO] Scanning for projects...
[INFO]
[INFO] --------------------------< com.example:demo >--------------------------
[INFO] Building demo 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ demo ---
[INFO] Deleting D:\code\xiandai\demo\target
[INFO]
[INFO] --- maven-resources-plugin:3.2.0:resources (default-resources) @ demo ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Using 'UTF-8' encoding to copy filtered properties files.
[INFO] Copying 1 resource
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ demo ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to D:\code\xiandai\demo\target\classes
[INFO]
[INFO] --- maven-resources-plugin:3.2.0:testResources (default-testResources) @ demo ---
[INFO] Not copying test resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ demo ---
[INFO] Not compiling test sources
[INFO]
[INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @ demo ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-jar-plugin:3.2.0:jar (default-jar) @ demo ---
[INFO] Building jar: D:\code\xiandai\demo\target\demo-0.0.1-SNAPSHOT.jar  # 一般是在target下面生成一个jar包 或war包 看项目创建时候的选择
[INFO]
[INFO] --- spring-boot-maven-plugin:2.5.0-M2:repackage (repackage) @ demo ---
[INFO] Replacing main artifact with repackaged archive
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  13.119 s
[INFO] Finished at: 2021-02-22T14:13:15+08:00
[INFO] ------------------------------------------------------------------------

 在此 路径下 D:\code\xiandai\demo>      启动:

java -jar target\demo-0.0.1-SNAPSHOT.jar

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::             (v2.5.0-M2)

2021-02-22 14:15:09.578  INFO 6276 --- [           main] com.example.demo.DemoApplication         : Starting DemoApplication v0.0.1-SNAPSHOT using Java 1.8.0_181 on BJ-075B with PID 6276 (D:\code\xiandai\demo\target\demo-0.0.1-SNAPSHOT.jar started by 108 in D:\code\xiandai\demo)
2021-02-22 14:15:09.589  INFO 6276 --- [           main] com.example.demo.DemoApplication         : No active profile set, falling back to default profiles: default
2021-02-22 14:15:16.933  INFO 6276 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 8080 (http)
2021-02-22 14:15:16.979  INFO 6276 --- [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2021-02-22 14:15:16.980  INFO 6276 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet engine: [Apache Tomcat/9.0.43]
2021-02-22 14:15:17.348  INFO 6276 --- [           main] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2021-02-22 14:15:17.349  INFO 6276 --- [           main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 7401 ms
2021-02-22 14:15:18.539  INFO 6276 --- [           main] o.s.s.concurrent.ThreadPoolTaskExecutor  : Initializing ExecutorService 'applicationTaskExecutor'
2021-02-22 14:15:19.362  WARN 6276 --- [           main] ion$DefaultTemplateResolverConfiguration : Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration)
2021-02-22 14:15:19.672  INFO 6276 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 8080 (http) with context path ''
2021-02-22 14:15:19.709  INFO 6276 --- [           main] com.example.demo.DemoApplication         : Started DemoApplication in 12.58 seconds (JVM running for 14.456)


 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值