pom.xml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <parent>
  7. <groupId>com.ywt</groupId>
  8. <artifactId>ywt-platform-outpatient-parent</artifactId>
  9. <version>1.0.0-SNAPSHOT</version>
  10. </parent>
  11. <artifactId>ywt-platform-outpatient-web</artifactId>
  12. <properties>
  13. <maven.compiler.source>8</maven.compiler.source>
  14. <maven.compiler.target>8</maven.compiler.target>
  15. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  16. </properties>
  17. <dependencies>
  18. <dependency>
  19. <groupId>com.ywt</groupId>
  20. <artifactId>ywt-platform-outpatient-sdk</artifactId>
  21. </dependency>
  22. <dependency>
  23. <groupId>org.springframework.boot</groupId>
  24. <artifactId>spring-boot-starter-web</artifactId>
  25. </dependency>
  26. <dependency>
  27. <groupId>org.springframework.boot</groupId>
  28. <artifactId>spring-boot-starter-jetty</artifactId>
  29. </dependency>
  30. <!-- 自动装配dubbo-->
  31. <dependency>
  32. <groupId>org.apache.dubbo</groupId>
  33. <artifactId>dubbo-spring-boot-starter</artifactId>
  34. </dependency>
  35. <dependency>
  36. <groupId>org.apache.dubbo</groupId>
  37. <artifactId>dubbo-registry-nacos</artifactId>
  38. </dependency>
  39. <!-- <dependency>
  40. <groupId>org.springframework.boot</groupId>
  41. <artifactId>spring-boot-starter</artifactId>
  42. </dependency>-->
  43. <dependency>
  44. <groupId>com.google.protobuf</groupId>
  45. <artifactId>protobuf-java</artifactId>
  46. <version>3.19.6</version>
  47. </dependency>
  48. <dependency>
  49. <groupId>com.google.protobuf</groupId>
  50. <artifactId>protobuf-java-util</artifactId>
  51. <version>3.19.6</version>
  52. </dependency>
  53. <!-- &lt;!&ndash; 注册中心 &ndash;&gt; -->
  54. <dependency>
  55. <groupId>com.alibaba.cloud</groupId>
  56. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  57. <version>2021.0.5.0</version>
  58. </dependency>
  59. <dependency>
  60. <groupId>org.springframework.cloud</groupId>
  61. <artifactId>spring-cloud-starter-netflix-ribbon</artifactId>
  62. <version>2.2.10.RELEASE</version>
  63. </dependency>
  64. <dependency>
  65. <groupId>org.springframework.cloud</groupId>
  66. <artifactId>spring-cloud-starter-bootstrap</artifactId>
  67. <version>3.1.7</version>
  68. </dependency>
  69. <dependency>
  70. <groupId>org.springframework.boot</groupId>
  71. <artifactId>spring-boot-starter-data-redis</artifactId>
  72. </dependency>
  73. <!-- jdbc 驱动引入-->
  74. <dependency>
  75. <groupId>mysql</groupId>
  76. <artifactId>mysql-connector-java</artifactId>
  77. </dependency>
  78. </dependencies>
  79. <profiles>
  80. <profile>
  81. <id>dev</id>
  82. <activation>
  83. <activeByDefault>true</activeByDefault>
  84. </activation>
  85. <properties>
  86. <active.profile>dev</active.profile>
  87. </properties>
  88. </profile>
  89. <profile>
  90. <id>test</id>
  91. <properties>
  92. <active.profile>test</active.profile>
  93. </properties>
  94. </profile>
  95. <profile>
  96. <id>product</id>
  97. <properties>
  98. <active.profile>product</active.profile>
  99. </properties>
  100. </profile>
  101. </profiles>
  102. <build>
  103. <filters>
  104. <filter>../config_filters/filters-${active.profile}.properties</filter>
  105. </filters>
  106. <resources>
  107. <resource>
  108. <directory>src/main/resources</directory>
  109. <filtering>true</filtering>
  110. </resource>
  111. </resources>
  112. <plugins>
  113. <plugin>
  114. <groupId>org.apache.maven.plugins</groupId>
  115. <artifactId>maven-compiler-plugin</artifactId>
  116. <version>3.2</version>
  117. <configuration>
  118. <source>1.8</source>
  119. <target>1.8</target>
  120. <encoding>utf-8</encoding>
  121. </configuration>
  122. </plugin>
  123. <plugin>
  124. <groupId>org.springframework.boot</groupId>
  125. <artifactId>spring-boot-maven-plugin</artifactId>
  126. <executions>
  127. <execution>
  128. <goals>
  129. <goal>repackage</goal>
  130. </goals>
  131. </execution>
  132. </executions>
  133. </plugin>
  134. </plugins>
  135. </build>
  136. </project>