pom.xml 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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>tnb</artifactId>
  7. <groupId>cn.reghao.tnb</groupId>
  8. <version>1.0.0</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>log</artifactId>
  12. <version>1.0.0-SNAPSHOT</version>
  13. <properties>
  14. <maven.compiler.source>11</maven.compiler.source>
  15. <maven.compiler.target>11</maven.compiler.target>
  16. </properties>
  17. <dependencies>
  18. <dependency>
  19. <groupId>cn.reghao.tnb</groupId>
  20. <artifactId>common</artifactId>
  21. <version>1.0.0-SNAPSHOT</version>
  22. </dependency>
  23. <dependency>
  24. <groupId>com.squareup.okhttp3</groupId>
  25. <artifactId>okhttp</artifactId>
  26. <version>4.10.0</version>
  27. </dependency>
  28. </dependencies>
  29. <profiles>
  30. <profile>
  31. <id>dev</id>
  32. <properties>
  33. <profile.active>dev</profile.active>
  34. </properties>
  35. <activation>
  36. <activeByDefault>true</activeByDefault>
  37. </activation>
  38. </profile>
  39. <profile>
  40. <id>test</id>
  41. <properties>
  42. <profile.active>test</profile.active>
  43. </properties>
  44. </profile>
  45. <profile>
  46. <id>cluster</id>
  47. <properties>
  48. <profile.active>cluster</profile.active>
  49. </properties>
  50. </profile>
  51. </profiles>
  52. <build>
  53. <finalName>tnb-log</finalName>
  54. <extensions>
  55. <extension>
  56. <groupId>kr.motd.maven</groupId>
  57. <artifactId>os-maven-plugin</artifactId>
  58. <version>1.5.0.Final</version>
  59. </extension>
  60. </extensions>
  61. <resources>
  62. <resource>
  63. <directory>src/main/resources</directory>
  64. <filtering>true</filtering>
  65. <includes>
  66. <include>application.yml</include>
  67. <include>application-${profile.active}.yml</include>
  68. </includes>
  69. </resource>
  70. </resources>
  71. <plugins>
  72. <plugin>
  73. <groupId>org.springframework.boot</groupId>
  74. <artifactId>spring-boot-maven-plugin</artifactId>
  75. <version>${springboot.version}</version>
  76. <executions>
  77. <execution>
  78. <goals>
  79. <goal>repackage</goal>
  80. </goals>
  81. </execution>
  82. </executions>
  83. </plugin>
  84. </plugins>
  85. </build>
  86. </project>