pom.xml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>org.springframework.boot</groupId>
  7. <artifactId>spring-boot-starter-parent</artifactId>
  8. <version>2.4.4</version>
  9. <relativePath/> <!-- lookup parent from repository -->
  10. </parent>
  11. <groupId>com.mokasz</groupId>
  12. <artifactId>image-pool</artifactId>
  13. <version>2.0.0</version>
  14. <name>image-pool</name>
  15. <description>Image Pool Matching Service</description>
  16. <properties>
  17. <java.version>1.8</java.version>
  18. </properties>
  19. <dependencies>
  20. <dependency>
  21. <groupId>commons-io</groupId>
  22. <artifactId>commons-io</artifactId>
  23. <version>2.6</version>
  24. </dependency>
  25. <dependency>
  26. <groupId>org.apache.httpcomponents</groupId>
  27. <artifactId>httpclient</artifactId>
  28. <version>4.5.13</version>
  29. </dependency>
  30. <dependency>
  31. <groupId>org.springframework.boot</groupId>
  32. <artifactId>spring-boot-starter-jdbc</artifactId>
  33. </dependency>
  34. <dependency>
  35. <groupId>org.springframework.boot</groupId>
  36. <artifactId>spring-boot-starter-web</artifactId>
  37. </dependency>
  38. <dependency>
  39. <groupId>org.projectlombok</groupId>
  40. <artifactId>lombok</artifactId>
  41. <version>1.18.20</version>
  42. <scope>provided</scope>
  43. </dependency>
  44. <dependency>
  45. <groupId>org.springframework.boot</groupId>
  46. <artifactId>spring-boot-devtools</artifactId>
  47. <version>2.4.3</version>
  48. </dependency>
  49. <dependency>
  50. <groupId>org.postgresql</groupId>
  51. <artifactId>postgresql</artifactId>
  52. <scope>runtime</scope>
  53. </dependency>
  54. <dependency>
  55. <groupId>org.bytedeco</groupId>
  56. <artifactId>opencv-platform</artifactId>
  57. <version>4.5.1-1.5.5</version>
  58. </dependency>
  59. <dependency>
  60. <groupId>org.springframework.boot</groupId>
  61. <artifactId>spring-boot-starter-test</artifactId>
  62. <scope>test</scope>
  63. </dependency>
  64. </dependencies>
  65. <profiles>
  66. <profile>
  67. <id>dev</id>
  68. <activation>
  69. <activeByDefault>true</activeByDefault>
  70. </activation>
  71. <properties>
  72. <spring.profiles.active>dev</spring.profiles.active>
  73. <spring.boot.mainclass>com.mokasz.pool.image.ImagePoolApplication</spring.boot.mainclass>
  74. </properties>
  75. </profile>
  76. <profile>
  77. <id>exec</id>
  78. <properties>
  79. <spring.profiles.active>dev</spring.profiles.active>
  80. <spring.boot.mainclass>com.mokasz.pool.image.ImportUrlsFromFileThreadedApplication</spring.boot.mainclass>
  81. </properties>
  82. </profile>
  83. <profile>
  84. <id>prod</id>
  85. <properties>
  86. <spring.profiles.active>prod</spring.profiles.active>
  87. <spring.boot.mainclass>com.mokasz.pool.image.ImagePoolApplication</spring.boot.mainclass>
  88. </properties>
  89. </profile>
  90. </profiles>
  91. <build>
  92. <plugins>
  93. <plugin>
  94. <groupId>org.springframework.boot</groupId>
  95. <artifactId>spring-boot-maven-plugin</artifactId>
  96. <configuration>
  97. <fork>true</fork><!-- 热部署 -->
  98. <mainClass>${spring.boot.mainclass}</mainClass>
  99. </configuration>
  100. <executions>
  101. <execution>
  102. <id>build-info</id>
  103. <goals>
  104. <goal>build-info</goal>
  105. </goals>
  106. </execution>
  107. </executions>
  108. </plugin>
  109. <plugin>
  110. <groupId>org.apache.maven.plugins</groupId>
  111. <artifactId>maven-surefire-plugin</artifactId>
  112. <version>2.22.2</version>
  113. <configuration>
  114. <skipTests>true</skipTests>
  115. </configuration>
  116. </plugin>
  117. </plugins>
  118. <resources>
  119. <resource>
  120. <directory>src/main/resources</directory>
  121. <filtering>true</filtering>
  122. </resource>
  123. </resources>
  124. </build>
  125. </project>