pom.xml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <parent>
  5. <groupId>com.xiaoju.uemc.tinyid</groupId>
  6. <artifactId>tinyid</artifactId>
  7. <version>0.1.0-SNAPSHOT</version>
  8. </parent>
  9. <modelVersion>4.0.0</modelVersion>
  10. <artifactId>tinyid-server</artifactId>
  11. <properties>
  12. <spring.version>1.5.9.RELEASE</spring.version>
  13. </properties>
  14. <dependencies>
  15. <dependency>
  16. <groupId>com.xiaoju.uemc.tinyid</groupId>
  17. <artifactId>tinyid-base</artifactId>
  18. </dependency>
  19. <dependency>
  20. <groupId>org.springframework.boot</groupId>
  21. <artifactId>spring-boot-starter-web</artifactId>
  22. <version>${spring.version}</version>
  23. <exclusions>
  24. <exclusion>
  25. <groupId>org.springframework.boot</groupId>
  26. <artifactId>spring-boot-starter-logging</artifactId>
  27. </exclusion>
  28. </exclusions>
  29. </dependency>
  30. <dependency>
  31. <groupId>org.springframework.boot</groupId>
  32. <artifactId>spring-boot-starter-tomcat</artifactId>
  33. <version>${spring.version}</version>
  34. </dependency>
  35. <dependency>
  36. <groupId>org.springframework.boot</groupId>
  37. <artifactId>spring-boot-starter-test</artifactId>
  38. <version>${spring.version}</version>
  39. <scope>test</scope>
  40. </dependency>
  41. <dependency>
  42. <groupId>org.springframework.boot</groupId>
  43. <artifactId>spring-boot-starter-log4j2</artifactId>
  44. <version>${spring.version}</version>
  45. </dependency>
  46. <dependency>
  47. <groupId>org.springframework.boot</groupId>
  48. <artifactId>spring-boot-starter-jdbc</artifactId>
  49. <version>${spring.version}</version>
  50. </dependency>
  51. <dependency>
  52. <groupId>junit</groupId>
  53. <artifactId>junit</artifactId>
  54. <scope>test</scope>
  55. </dependency>
  56. <dependency>
  57. <groupId>mysql</groupId>
  58. <artifactId>mysql-connector-java</artifactId>
  59. <version>5.1.44</version>
  60. </dependency>
  61. <dependency>
  62. <groupId>commons-beanutils</groupId>
  63. <artifactId>commons-beanutils</artifactId>
  64. <version>1.9.3</version>
  65. </dependency>
  66. </dependencies>
  67. <profiles>
  68. <profile>
  69. <id>online</id>
  70. <properties>
  71. <package.environment>online</package.environment>
  72. </properties>
  73. </profile>
  74. <profile>
  75. <id>offline</id>
  76. <activation>
  77. <activeByDefault>true</activeByDefault>
  78. </activation>
  79. <properties>
  80. <package.environment>offline</package.environment>
  81. </properties>
  82. </profile>
  83. </profiles>
  84. <build>
  85. <plugins>
  86. <plugin>
  87. <groupId>org.springframework.boot</groupId>
  88. <artifactId>spring-boot-maven-plugin</artifactId>
  89. <version>${spring.version}</version>
  90. <executions>
  91. <execution>
  92. <goals>
  93. <goal>repackage</goal>
  94. </goals>
  95. </execution>
  96. </executions>
  97. </plugin>
  98. </plugins>
  99. <resources>
  100. <resource>
  101. <directory>src/main/resources/${package.environment}</directory>
  102. </resource>
  103. <resource>
  104. <directory>src/main/resources/base</directory>
  105. </resource>
  106. </resources>
  107. </build>
  108. </project>