pom.xml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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. <parent>
  6. <artifactId>lb-third</artifactId>
  7. <groupId>com.ydd</groupId>
  8. <version>1.0</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>lb-third-waimai</artifactId>
  12. <dependencies>
  13. <!--
  14. <dependency>
  15. <groupId>com.sankuai</groupId>
  16. <artifactId>MeiTuanCipCater</artifactId>
  17. <version>1.10</version>
  18. </dependency>
  19. -->
  20. <dependency>
  21. <groupId>org.springframework.boot</groupId>
  22. <artifactId>spring-boot-starter-web</artifactId>
  23. <exclusions>
  24. <exclusion>
  25. <artifactId>spring-boot-starter-tomcat</artifactId>
  26. <groupId>org.springframework.boot</groupId>
  27. </exclusion>
  28. </exclusions>
  29. </dependency>
  30. <dependency>
  31. <groupId>com.fasterxml.jackson.core</groupId>
  32. <artifactId>jackson-databind</artifactId>
  33. <version>2.12.3</version>
  34. </dependency>
  35. <dependency>
  36. <groupId>com.ydd</groupId>
  37. <artifactId>lb-third-common</artifactId>
  38. <version>1.0</version>
  39. </dependency>
  40. <dependency>
  41. <groupId>com.ydd</groupId>
  42. <artifactId>lb-third-print</artifactId>
  43. <version>1.0</version>
  44. </dependency>
  45. <dependency>
  46. <groupId>o2o-openplatform</groupId>
  47. <artifactId>open_sdk</artifactId>
  48. <version>1.0.0-SNAPSHOT</version>
  49. </dependency>
  50. </dependencies>
  51. <build>
  52. <plugins>
  53. <plugin>
  54. <groupId>org.springframework.boot</groupId>
  55. <artifactId>spring-boot-maven-plugin</artifactId>
  56. <version>2.1.1.RELEASE</version>
  57. <configuration>
  58. <fork>true</fork> <!-- 如果没有该配置,devtools不会生效 -->
  59. </configuration>
  60. <executions>
  61. <execution>
  62. <goals>
  63. <goal>repackage</goal>
  64. </goals>
  65. </execution>
  66. </executions>
  67. </plugin>
  68. <plugin>
  69. <groupId>org.apache.maven.plugins</groupId>
  70. <artifactId>maven-war-plugin</artifactId>
  71. <version>3.1.0</version>
  72. <configuration>
  73. <failOnMissingWebXml>false</failOnMissingWebXml>
  74. <warName>${project.artifactId}</warName>
  75. </configuration>
  76. </plugin>
  77. <plugin>
  78. <groupId>org.apache.maven.plugins</groupId>
  79. <artifactId>maven-surefire-plugin</artifactId>
  80. <configuration>
  81. <testFailureIgnore>true</testFailureIgnore>
  82. </configuration>
  83. </plugin>
  84. </plugins>
  85. <finalName>${project.artifactId}</finalName>
  86. </build>
  87. <profiles>
  88. <profile>
  89. <id>dev</id>
  90. <properties>
  91. <!-- 环境标识,需要与配置文件的名称相对应 -->
  92. <profiles.active>dev</profiles.active>
  93. <logging.level>debug</logging.level>
  94. </properties>
  95. <activation>
  96. <!-- 默认环境 -->
  97. <activeByDefault>true</activeByDefault>
  98. </activation>
  99. </profile>
  100. <profile>
  101. <id>prod</id>
  102. <properties>
  103. <profiles.active>prod</profiles.active>
  104. <logging.level>info</logging.level>
  105. </properties>
  106. </profile>
  107. </profiles>
  108. </project>