vscode for java-maven环境

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

https://blog.csdn.net/weixin_44829292/article/details/103066458

 

vscode for java spring boot:https://www.cnblogs.com/miskis/p/9816135.html

 

maven打包java项目:https://blog.csdn.net/chenzheng8975/article/details/89223990

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)


 

你可能感兴趣的:(java,jdk,maven)