pom.xml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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-glasses-parent</artifactId>
  9. <version>1.0.0-SNAPSHOT</version>
  10. </parent>
  11. <artifactId>ywt-platform-glasses-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-glasses-sdk</artifactId>
  21. </dependency>
  22. <dependency>
  23. <groupId>com.ywt</groupId>
  24. <artifactId>ywt-platform-glasses-common</artifactId>
  25. </dependency>
  26. <dependency>
  27. <groupId>org.springframework.boot</groupId>
  28. <artifactId>spring-boot-starter-web</artifactId>
  29. </dependency>
  30. <dependency>
  31. <groupId>org.springframework.boot</groupId>
  32. <artifactId>spring-boot-starter-jetty</artifactId>
  33. </dependency>
  34. <!-- 注册中心 -->
  35. <dependency>
  36. <groupId>com.alibaba.cloud</groupId>
  37. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  38. </dependency>
  39. <dependency>
  40. <groupId>org.springframework.cloud</groupId>
  41. <artifactId>spring-cloud-starter-bootstrap</artifactId>
  42. </dependency>
  43. <dependency>
  44. <groupId>mysql</groupId>
  45. <artifactId>mysql-connector-java</artifactId>
  46. </dependency>
  47. <dependency>
  48. <groupId>org.slf4j</groupId>
  49. <artifactId>slf4j-api</artifactId>
  50. </dependency>
  51. <dependency>
  52. <groupId>ch.qos.logback</groupId>
  53. <artifactId>logback-classic</artifactId>
  54. </dependency>
  55. <dependency>
  56. <groupId>org.springframework.boot</groupId>
  57. <artifactId>spring-boot-starter-data-redis</artifactId>
  58. </dependency>
  59. <dependency>
  60. <groupId>org.springframework.kafka</groupId>
  61. <artifactId>spring-kafka</artifactId>
  62. </dependency>
  63. </dependencies>
  64. <profiles>
  65. <profile>
  66. <id>dev</id>
  67. <activation>
  68. <activeByDefault>true</activeByDefault>
  69. </activation>
  70. <properties>
  71. <active.profile>dev</active.profile>
  72. </properties>
  73. </profile>
  74. <profile>
  75. <id>test</id>
  76. <properties>
  77. <active.profile>test</active.profile>
  78. </properties>
  79. </profile>
  80. <profile>
  81. <id>product</id>
  82. <properties>
  83. <active.profile>product</active.profile>
  84. </properties>
  85. </profile>
  86. </profiles>
  87. <build>
  88. <filters>
  89. <filter>../config_filters/filters-${active.profile}.properties</filter>
  90. </filters>
  91. <resources>
  92. <resource>
  93. <directory>src/main/resources</directory>
  94. <filtering>true</filtering>
  95. </resource>
  96. </resources>
  97. <plugins>
  98. <plugin>
  99. <groupId>org.apache.maven.plugins</groupId>
  100. <artifactId>maven-compiler-plugin</artifactId>
  101. <version>3.2</version>
  102. <configuration>
  103. <source>1.8</source>
  104. <target>1.8</target>
  105. <encoding>utf-8</encoding>
  106. </configuration>
  107. </plugin>
  108. <plugin>
  109. <groupId>org.springframework.boot</groupId>
  110. <artifactId>spring-boot-maven-plugin</artifactId>
  111. <executions>
  112. <execution>
  113. <goals>
  114. <goal>repackage</goal>
  115. </goals>
  116. </execution>
  117. </executions>
  118. </plugin>
  119. </plugins>
  120. </build>
  121. </project>