pom.xml 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <parent>
  7. <groupId>org.springframework.boot</groupId>
  8. <artifactId>spring-boot-starter-parent</artifactId>
  9. <version>2.3.4.RELEASE</version>
  10. </parent>
  11. <groupId>cn.lili</groupId>
  12. <artifactId>lili-shop-parent</artifactId>
  13. <version>4.2.0</version>
  14. <properties>
  15. <docker-registry>registry.cn-beijing.aliyuncs.com/lili-images</docker-registry>
  16. <images-version>0.0.1</images-version>
  17. </properties>
  18. <modules>
  19. <module>framework</module>
  20. <module>buyer-api</module>
  21. <module>manager-api</module>
  22. <module>seller-api</module>
  23. <module>common-api</module>
  24. <module>consumer</module>
  25. <module>admin</module>
  26. </modules>
  27. <packaging>pom</packaging>
  28. <build>
  29. <plugins>
  30. <!--版本号统一修改-->
  31. <plugin>
  32. <groupId>org.codehaus.mojo</groupId>
  33. <artifactId>versions-maven-plugin</artifactId>
  34. <version>2.7</version>
  35. <configuration>
  36. <generateBackupPoms>false</generateBackupPoms>
  37. </configuration>
  38. </plugin>
  39. <plugin>
  40. <groupId>com.spotify</groupId>
  41. <artifactId>docker-maven-plugin</artifactId>
  42. <version>1.2.2</version>
  43. <configuration>
  44. <imageName>${docker-registry}/${project.build.finalName}:${images-version}</imageName>
  45. <baseImage>java</baseImage>
  46. <entryPoint>["java", "-jar", "/${project.build.finalName}.jar"]</entryPoint>
  47. <pushImage>true</pushImage>
  48. <resources>
  49. <resource>
  50. <targetPath>/</targetPath>
  51. <directory>${project.build.directory}</directory>
  52. <include>${project.build.finalName}.jar</include>
  53. </resource>
  54. </resources>
  55. </configuration>
  56. </plugin>
  57. </plugins>
  58. </build>
  59. <repositories>
  60. <repository>
  61. <id>central</id>
  62. <name>aliyun maven</name>
  63. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  64. <layout>default</layout>
  65. <!-- 是否开启发布版构件下载 -->
  66. <releases>
  67. <enabled>true</enabled>
  68. </releases>
  69. <!-- 是否开启快照版构件下载 -->
  70. <snapshots>
  71. <enabled>false</enabled>
  72. </snapshots>
  73. </repository>
  74. </repositories>
  75. </project>