pom.xml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>com.github.microservice</groupId>
  7. <artifactId>PParent</artifactId>
  8. <version>1.0.0-SNAPSHOT</version>
  9. <relativePath>../../super/PParent</relativePath>
  10. </parent>
  11. <groupId>com.example</groupId>
  12. <artifactId>stream</artifactId>
  13. <name>stream</name>
  14. <properties>
  15. <java.version>11</java.version>
  16. </properties>
  17. <dependencies>
  18. <dependency>
  19. <groupId>com.github.microservice</groupId>
  20. <artifactId>PCore</artifactId>
  21. <version>${project.version}</version>
  22. </dependency>
  23. <!--应用中心客户端-->
  24. <dependency>
  25. <groupId>com.github.microservice.components</groupId>
  26. <artifactId>ApplicationClient</artifactId>
  27. <version>${project.version}</version>
  28. </dependency>
  29. </dependencies>
  30. <!--构建-->
  31. <build>
  32. <plugins>
  33. <plugin>
  34. <groupId>org.springframework.boot</groupId>
  35. <artifactId>spring-boot-maven-plugin</artifactId>
  36. <configuration>
  37. <fork>true</fork>
  38. </configuration>
  39. <executions>
  40. <execution>
  41. <goals>
  42. <goal>repackage</goal>
  43. </goals>
  44. </execution>
  45. </executions>
  46. </plugin>
  47. </plugins>
  48. <!-- properties 取 pom 配置 -->
  49. <resources>
  50. <resource>
  51. <directory>src/main/resources</directory>
  52. <filtering>true</filtering>
  53. </resource>
  54. </resources>
  55. </build>
  56. </project>