pom.xml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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>1.5.3.RELEASE</version>
  9. <relativePath/> <!-- lookup parent from repository -->
  10. </parent>
  11. <groupId>com.mooctest</groupId>
  12. <artifactId>export</artifactId>
  13. <version>0.0.1-SNAPSHOT</version>
  14. <name>export</name>
  15. <description>Project for exporting reports in excel.</description>
  16. <properties>
  17. <java.version>1.8</java.version>
  18. <!-- 在docker运行时要用的,只是一个前缀而已,就像包名一样,可自己任意定义此名称 -->
  19. <docker.image.prefix>crowd_review</docker.image.prefix>
  20. </properties>
  21. <dependencies>
  22. <dependency>
  23. <groupId>org.springframework.boot</groupId>
  24. <artifactId>spring-boot-starter-web</artifactId>
  25. </dependency>
  26. <dependency>
  27. <groupId>org.springframework.boot</groupId>
  28. <artifactId>spring-boot-starter-test</artifactId>
  29. <scope>test</scope>
  30. </dependency>
  31. <!--apache工具类-->
  32. <dependency>
  33. <groupId>org.apache.commons</groupId>
  34. <artifactId>commons-lang3</artifactId>
  35. <version>3.1</version>
  36. </dependency>
  37. <dependency>
  38. <groupId>org.apache.commons</groupId>
  39. <artifactId>commons-collections4</artifactId>
  40. <version>4.1</version>
  41. </dependency>
  42. <!--lombok-->
  43. <dependency>
  44. <groupId>org.projectlombok</groupId>
  45. <artifactId>lombok</artifactId>
  46. <version>1.18.2</version>
  47. <scope>provided</scope>
  48. </dependency>
  49. <!--处理JSON格式-->
  50. <dependency>
  51. <groupId>com.alibaba</groupId>
  52. <artifactId>fastjson</artifactId>
  53. <version>1.2.3</version>
  54. </dependency>
  55. <!-- 基本依赖,仅操作 xls 格式只需引入此依赖 -->
  56. <dependency>
  57. <groupId>org.apache.poi</groupId>
  58. <artifactId>poi</artifactId>
  59. <version>3.14</version>
  60. </dependency>
  61. <!-- 使用 xlsx 格式需要额外引入此依赖 -->
  62. <dependency>
  63. <groupId>org.apache.poi</groupId>
  64. <artifactId>poi-ooxml</artifactId>
  65. <version>3.14</version>
  66. </dependency>
  67. </dependencies>
  68. <build>
  69. <plugins>
  70. <plugin>
  71. <groupId>org.springframework.boot</groupId>
  72. <artifactId>spring-boot-maven-plugin</artifactId>
  73. </plugin>
  74. <!-- docker 插件 begin -->
  75. <plugin>
  76. <groupId>com.spotify</groupId>
  77. <artifactId>docker-maven-plugin</artifactId>
  78. <version>1.0.0</version>
  79. <configuration>
  80. <!--ray/springboot-docker-->
  81. <imageName>${docker.image.prefix}/${project.artifactId}</imageName>
  82. <dockerDirectory>.</dockerDirectory>
  83. <resources>
  84. <resource>
  85. <targetPath>/</targetPath>
  86. <directory>${project.build.directory}</directory>
  87. <include>${project.build.finalName}.jar</include>
  88. </resource>
  89. </resources>
  90. </configuration>
  91. </plugin>
  92. <!-- docker 插件 end -->
  93. </plugins>
  94. <!--打包后文件名称-->
  95. <finalName>export-excel</finalName>
  96. </build>
  97. </project>