pom.xml 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <parent>
  5. <groupId>org.springframework.boot</groupId>
  6. <artifactId>spring-boot-starter-parent</artifactId>
  7. <version>2.0.1.RELEASE</version>
  8. </parent>
  9. <groupId>com.hys.app</groupId>
  10. <artifactId>erp</artifactId>
  11. <version>7.2.2</version>
  12. <modules>
  13. <module>framework</module>
  14. <module>module-erp</module>
  15. <module>module-openapi</module>
  16. <module>server</module>
  17. </modules>
  18. <packaging>pom</packaging>
  19. <name>erp</name>
  20. <description>erp 主工程</description>
  21. <properties>
  22. <docker-registry>registry.cn-beijing.aliyuncs.com/hys/</docker-registry>
  23. <docker-server-id>docker-aliyun</docker-server-id>
  24. <shardingsphere.version>4.1.0</shardingsphere.version>
  25. <erp-version>7.2.2</erp-version>
  26. <okhttp3.version>3.14.0</okhttp3.version>
  27. <log4j2.version>2.17.1</log4j2.version>
  28. </properties>
  29. <dependencyManagement>
  30. <dependencies>
  31. <dependency>
  32. <groupId>org.springframework.cloud</groupId>
  33. <artifactId>spring-cloud-dependencies</artifactId>
  34. <version>Finchley.SR1</version>
  35. <type>pom</type>
  36. <scope>import</scope>
  37. </dependency>
  38. <dependency>
  39. <groupId>com.squareup.okhttp3</groupId>
  40. <artifactId>okhttp</artifactId>
  41. <version>${okhttp3.version}</version>
  42. </dependency>
  43. <!--全局排除spring-boot-starter-logging内的所有依赖-->
  44. <dependency>
  45. <groupId>org.springframework.boot</groupId>
  46. <artifactId>spring-boot-starter-logging</artifactId>
  47. <exclusions>
  48. <exclusion>
  49. <groupId>*</groupId>
  50. <artifactId>*</artifactId>
  51. </exclusion>
  52. </exclusions>
  53. </dependency>
  54. </dependencies>
  55. </dependencyManagement>
  56. <build>
  57. <plugins>
  58. <plugin>
  59. <groupId>org.apache.maven.plugins</groupId>
  60. <artifactId>maven-surefire-plugin</artifactId>
  61. </plugin>
  62. <plugin>
  63. <groupId>com.spotify</groupId>
  64. <artifactId>docker-maven-plugin</artifactId>
  65. <version>1.1.1</version>
  66. <configuration>
  67. <imageName>${docker-registry}${project.artifactId}:7.2.0</imageName>
  68. <baseImage>
  69. </baseImage>
  70. <entryPoint>["java","-jar", "/opt/${project.build.finalName}.jar" ,"-Dfile.encoding=UTF-8"]
  71. </entryPoint>
  72. <resources>
  73. <resource>
  74. <targetPath>/opt/</targetPath>
  75. <directory>${project.build.directory}</directory>
  76. <include>${project.build.finalName}.jar</include>
  77. </resource>
  78. </resources>
  79. <forceTags>true</forceTags>
  80. <serverId>${docker-server-id}</serverId>
  81. </configuration>
  82. </plugin>
  83. </plugins>
  84. </build>
  85. </project>