pom.xml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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>custom-gateway-${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. </plugin>
  40. <!--maven-resources-->
  41. <plugin>
  42. <groupId>org.apache.maven.plugins</groupId>
  43. <artifactId>maven-resources-plugin</artifactId>
  44. <configuration>
  45. <encoding>UTF-8</encoding>
  46. <!-- 过滤后缀为pem、pfx的证书文件 -->
  47. <nonFilteredFileExtensions>
  48. <nonFilteredFileExtension>pem</nonFilteredFileExtension>
  49. <nonFilteredFileExtension>pfx</nonFilteredFileExtension>
  50. <nonFilteredFileExtension>p12</nonFilteredFileExtension>
  51. </nonFilteredFileExtensions>
  52. </configuration>
  53. </plugin>
  54. <!--spring-boot-->
  55. <plugin>
  56. <groupId>org.springframework.boot</groupId>
  57. <artifactId>spring-boot-maven-plugin</artifactId>
  58. <version>${spring.boot.version}</version>
  59. <configuration>
  60. <fork>true</fork>
  61. <executable>true</executable>
  62. <mainClass>com.shkpr.service.customgateway.CustomGatewayApplication</mainClass>
  63. </configuration>
  64. <executions>
  65. <execution>
  66. <goals>
  67. <goal>build-info</goal>
  68. </goals>
  69. </execution>
  70. </executions>
  71. </plugin>
  72. </plugins>
  73. <!--资源包-->
  74. <resources>
  75. <!--lib-->
  76. <resource>
  77. <directory>${project.basedir}/libs</directory>
  78. <targetPath>BOOT-INF/lib/</targetPath>
  79. <includes>
  80. <include>**/*.jar</include>
  81. </includes>
  82. </resource>
  83. <!--resources-->
  84. <resource>
  85. <directory>src/main/resources</directory>
  86. <includes>
  87. <include>**/**</include>
  88. </includes>
  89. <filtering>true</filtering>
  90. </resource>
  91. </resources>
  92. </build>
  93. </project>