pom.xml 3.5 KB

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