pom.xml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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-dev</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. </systemPropertyVariables>
  77. </configuration>
  78. </plugin>
  79. <!--spring-boot-->
  80. <plugin>
  81. <groupId>org.springframework.boot</groupId>
  82. <artifactId>spring-boot-maven-plugin</artifactId>
  83. <version>${spring.boot.version}</version>
  84. <configuration>
  85. <fork>true</fork>
  86. <executable>true</executable>
  87. <mainClass>com.shkpr.service.customgateway.CustomGatewayApplication</mainClass>
  88. </configuration>
  89. <executions>
  90. <execution>
  91. <goals>
  92. <goal>repackage</goal>
  93. </goals>
  94. </execution>
  95. </executions>
  96. </plugin>
  97. </plugins>
  98. <!--资源包-->
  99. <resources>
  100. <!--lib-->
  101. <resource>
  102. <directory>${project.basedir}/../libs</directory>
  103. <targetPath>BOOT-INF/lib/</targetPath>
  104. <includes>
  105. <include>**/*.jar</include>
  106. </includes>
  107. </resource>
  108. <!--resources-->
  109. <resource>
  110. <directory>src/main/resources</directory>
  111. <includes>
  112. <include>**/**</include>
  113. </includes>
  114. <filtering>true</filtering>
  115. </resource>
  116. </resources>
  117. </build>
  118. </project>