方式一:IDEA 打包

如图:
dd6361ffb2ab0e3d76501fe142a7cc1.png

方式二:plugin 打包

  1. <properties>


11
true

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>org.springframework.boot</groupId>
  7. <artifactId>spring-boot-starter-parent</artifactId>
  8. <version>2.5.3</version>
  9. <relativePath/> <!-- lookup parent from repository -->
  10. </parent>
  11. <groupId>com.gaoshan</groupId>
  12. <artifactId>ebpc</artifactId>
  13. <version>0.0.1-SNAPSHOT</version>
  14. <name>ethBlockPullClient</name>
  15. <description>ethBlockPullClient</description>
  16. <properties>
  17. <java.version>11</java.version>
  18. <skipTest>true</skipTest>
  19. </properties>
  20. <dependencies>

说明:这种方式没有进行成功的验证

方式三:mvn 命令行打包

mvn install -DskipTests

mvn install -Dmaven.test.skip=true