pom.xml 3.6 KB

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