pom.xml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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. <!--中环数采-->
  29. <dependency>
  30. <groupId>com.shkpr.service</groupId>
  31. <artifactId>custom-gateway-zhiot</artifactId>
  32. <version>${project.version}</version>
  33. </dependency>
  34. </dependencies>
  35. <!--构建脚本-->
  36. <build>
  37. <!-- 打成jar包的名称 -->
  38. <finalName>${parent.artifactId}-${project.version}</finalName>
  39. <!--插件项-->
  40. <plugins>
  41. <!--maven-compiler-->
  42. <plugin>
  43. <groupId>org.apache.maven.plugins</groupId>
  44. <artifactId>maven-compiler-plugin</artifactId>
  45. <configuration>
  46. <source>${maven.compiler.source}</source>
  47. <target>${maven.compiler.target}</target>
  48. <encoding>${project.build.sourceEncoding}</encoding>
  49. <compilerArguments>
  50. <extdirs>${project.basedir}/../libs</extdirs>
  51. </compilerArguments>
  52. <annotationProcessorPaths>
  53. <path>
  54. <groupId>org.projectlombok</groupId>
  55. <artifactId>lombok</artifactId>
  56. </path>
  57. </annotationProcessorPaths>
  58. </configuration>
  59. </plugin>
  60. <!--maven-resources-->
  61. <plugin>
  62. <groupId>org.apache.maven.plugins</groupId>
  63. <artifactId>maven-resources-plugin</artifactId>
  64. <configuration>
  65. <encoding>UTF-8</encoding>
  66. <!-- 过滤后缀为pem、pfx的证书文件 -->
  67. <nonFilteredFileExtensions>
  68. <nonFilteredFileExtension>pem</nonFilteredFileExtension>
  69. <nonFilteredFileExtension>pfx</nonFilteredFileExtension>
  70. <nonFilteredFileExtension>p12</nonFilteredFileExtension>
  71. </nonFilteredFileExtensions>
  72. </configuration>
  73. </plugin>
  74. <!--maven-surefire-->
  75. <plugin>
  76. <groupId>org.apache.maven.plugins</groupId>
  77. <artifactId>maven-surefire-plugin</artifactId>
  78. <configuration>
  79. <skipTests>true</skipTests>
  80. <systemPropertyVariables>
  81. <global.sql-config-path>../db_config.yml</global.sql-config-path>
  82. <device.map-path>../dev_map.yml</device.map-path>
  83. <spring.datasource.multi.embedded.url>jdbc:h2:file:../data
  84. </spring.datasource.multi.embedded.url>
  85. </systemPropertyVariables>
  86. </configuration>
  87. </plugin>
  88. <!--spring-boot-->
  89. <plugin>
  90. <groupId>org.springframework.boot</groupId>
  91. <artifactId>spring-boot-maven-plugin</artifactId>
  92. <version>${spring.boot.version}</version>
  93. <configuration>
  94. <fork>true</fork>
  95. <executable>true</executable>
  96. <mainClass>com.shkpr.service.customgateway.CustomGatewayApplication</mainClass>
  97. </configuration>
  98. <executions>
  99. <execution>
  100. <goals>
  101. <goal>repackage</goal>
  102. </goals>
  103. </execution>
  104. </executions>
  105. </plugin>
  106. </plugins>
  107. <!--资源包-->
  108. <resources>
  109. <!--lib-->
  110. <resource>
  111. <directory>${project.basedir}/../libs</directory>
  112. <targetPath>BOOT-INF/lib/</targetPath>
  113. <includes>
  114. <include>**/*.jar</include>
  115. </includes>
  116. </resource>
  117. <!--resources-->
  118. <resource>
  119. <directory>src/main/resources</directory>
  120. <includes>
  121. <include>**/**</include>
  122. </includes>
  123. <filtering>true</filtering>
  124. </resource>
  125. </resources>
  126. </build>
  127. </project>