pom.xml 3.9 KB

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