pom.xml 3.4 KB

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