pom.xml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  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. </dependencies>
  60. <profiles>
  61. <profile>
  62. <id>dev</id>
  63. <activation>
  64. <activeByDefault>true</activeByDefault>
  65. </activation>
  66. <properties>
  67. <active.profile>dev</active.profile>
  68. </properties>
  69. </profile>
  70. <profile>
  71. <id>test</id>
  72. <properties>
  73. <active.profile>test</active.profile>
  74. </properties>
  75. </profile>
  76. <profile>
  77. <id>product</id>
  78. <properties>
  79. <active.profile>product</active.profile>
  80. </properties>
  81. </profile>
  82. </profiles>
  83. <build>
  84. <filters>
  85. <filter>../config_filters/filters-${active.profile}.properties</filter>
  86. </filters>
  87. <resources>
  88. <resource>
  89. <directory>src/main/resources</directory>
  90. <filtering>true</filtering>
  91. </resource>
  92. </resources>
  93. <plugins>
  94. <plugin>
  95. <groupId>org.apache.maven.plugins</groupId>
  96. <artifactId>maven-compiler-plugin</artifactId>
  97. <version>3.2</version>
  98. <configuration>
  99. <source>1.8</source>
  100. <target>1.8</target>
  101. <encoding>utf-8</encoding>
  102. </configuration>
  103. </plugin>
  104. <plugin>
  105. <groupId>org.springframework.boot</groupId>
  106. <artifactId>spring-boot-maven-plugin</artifactId>
  107. <executions>
  108. <execution>
  109. <goals>
  110. <goal>repackage</goal>
  111. </goals>
  112. </execution>
  113. </executions>
  114. </plugin>
  115. </plugins>
  116. </build>
  117. </project>