pom.xml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <!--父工程信息-->
  5. <parent>
  6. <groupId>com.shkpr.service</groupId>
  7. <artifactId>kpr-custom-gateway</artifactId>
  8. <version>1.0.0</version>
  9. </parent>
  10. <!--工件名-->
  11. <artifactId>custom-gateway-app</artifactId>
  12. <!--版本号-->
  13. <version>${project.version}</version>
  14. <!--打包方式-->
  15. <packaging>jar</packaging>
  16. <!--项目名-->
  17. <name>CustomGatewayApp</name>
  18. <!--项目描述-->
  19. <description>启动模块</description>
  20. <!--依赖项-->
  21. <dependencies>
  22. <!--枣阳漏控-->
  23. <dependency>
  24. <groupId>com.shkpr.service</groupId>
  25. <artifactId>custom-gateway-zydma</artifactId>
  26. <version>${project.version}</version>
  27. </dependency>
  28. </dependencies>
  29. <!--构建脚本-->
  30. <build>
  31. <!-- 打成jar包的名称 -->
  32. <finalName>${parent.artifactId}-${project.version}</finalName>
  33. <!--插件项-->
  34. <plugins>
  35. <!--maven-compiler-->
  36. <plugin>
  37. <groupId>org.apache.maven.plugins</groupId>
  38. <artifactId>maven-compiler-plugin</artifactId>
  39. <configuration>
  40. <source>${maven.compiler.source}</source>
  41. <target>${maven.compiler.target}</target>
  42. <encoding>${project.build.sourceEncoding}</encoding>
  43. <compilerArguments>
  44. <extdirs>${project.basedir}/../libs</extdirs>
  45. </compilerArguments>
  46. <annotationProcessorPaths>
  47. <path>
  48. <groupId>org.projectlombok</groupId>
  49. <artifactId>lombok</artifactId>
  50. </path>
  51. </annotationProcessorPaths>
  52. </configuration>
  53. </plugin>
  54. <!--maven-resources-->
  55. <plugin>
  56. <groupId>org.apache.maven.plugins</groupId>
  57. <artifactId>maven-resources-plugin</artifactId>
  58. <configuration>
  59. <encoding>UTF-8</encoding>
  60. <!-- 过滤后缀为pem、pfx的证书文件 -->
  61. <nonFilteredFileExtensions>
  62. <nonFilteredFileExtension>pem</nonFilteredFileExtension>
  63. <nonFilteredFileExtension>pfx</nonFilteredFileExtension>
  64. <nonFilteredFileExtension>p12</nonFilteredFileExtension>
  65. </nonFilteredFileExtensions>
  66. </configuration>
  67. </plugin>
  68. <!--maven-surefire-->
  69. <plugin>
  70. <groupId>org.apache.maven.plugins</groupId>
  71. <artifactId>maven-surefire-plugin</artifactId>
  72. <configuration>
  73. <skipTests>true</skipTests>
  74. <systemPropertyVariables>
  75. <global.sql-config-path>../db.yml</global.sql-config-path>
  76. <device.map-path>../dev_map.yml</device.map-path>
  77. <device.seq-path>../dev_seq.json</device.seq-path>
  78. </systemPropertyVariables>
  79. </configuration>
  80. </plugin>
  81. <!--spring-boot-->
  82. <plugin>
  83. <groupId>org.springframework.boot</groupId>
  84. <artifactId>spring-boot-maven-plugin</artifactId>
  85. <version>${spring.boot.version}</version>
  86. <configuration>
  87. <fork>true</fork>
  88. <executable>true</executable>
  89. <mainClass>com.shkpr.service.customgateway.CustomGatewayApplication</mainClass>
  90. </configuration>
  91. <executions>
  92. <execution>
  93. <goals>
  94. <goal>repackage</goal>
  95. </goals>
  96. </execution>
  97. </executions>
  98. </plugin>
  99. </plugins>
  100. <!--资源包-->
  101. <resources>
  102. <!--lib-->
  103. <resource>
  104. <directory>${project.basedir}/../libs</directory>
  105. <targetPath>BOOT-INF/lib/</targetPath>
  106. <includes>
  107. <include>**/*.jar</include>
  108. </includes>
  109. </resource>
  110. <!--resources-->
  111. <resource>
  112. <directory>src/main/resources</directory>
  113. <includes>
  114. <include>**/**</include>
  115. </includes>
  116. <filtering>true</filtering>
  117. </resource>
  118. </resources>
  119. </build>
  120. </project>