pom.xml 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. <parent>
  4. <groupId>com.zlt</groupId>
  5. <artifactId>zlt-transaction</artifactId>
  6. <version>2.7.0</version>
  7. </parent>
  8. <modelVersion>4.0.0</modelVersion>
  9. <artifactId>txlcn-tm</artifactId>
  10. <description>tx-lcn事务管理器</description>
  11. <dependencies>
  12. <dependency>
  13. <groupId>com.zlt</groupId>
  14. <artifactId>zlt-config</artifactId>
  15. <exclusions>
  16. <exclusion>
  17. <groupId>com.alibaba.cloud</groupId>
  18. <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
  19. </exclusion>
  20. </exclusions>
  21. </dependency>
  22. <dependency>
  23. <groupId>com.zlt</groupId>
  24. <artifactId>zlt-log-spring-boot-starter</artifactId>
  25. </dependency>
  26. <dependency>
  27. <groupId>com.alibaba.cloud</groupId>
  28. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  29. </dependency>
  30. <dependency>
  31. <groupId>com.codingapi.txlcn</groupId>
  32. <artifactId>txlcn-tm</artifactId>
  33. </dependency>
  34. </dependencies>
  35. <build>
  36. <plugins>
  37. <plugin>
  38. <groupId>org.springframework.boot</groupId>
  39. <artifactId>spring-boot-maven-plugin</artifactId>
  40. <executions>
  41. <execution>
  42. <goals>
  43. <goal>repackage</goal>
  44. </goals>
  45. </execution>
  46. </executions>
  47. </plugin>
  48. <plugin>
  49. <groupId>com.spotify</groupId>
  50. <artifactId>docker-maven-plugin</artifactId>
  51. <configuration>
  52. <imageName>${docker.image.prefix}/${project.artifactId}</imageName>
  53. <imageTags>
  54. <imageTag>${project.version}</imageTag>
  55. <imageTag>latest</imageTag>
  56. </imageTags>
  57. <forceTags>true</forceTags>
  58. <baseImage>${docker.baseImage}</baseImage>
  59. <volumes>${docker.volumes}</volumes>
  60. <env>
  61. <JAVA_OPTS>${docker.java.opts}</JAVA_OPTS>
  62. </env>
  63. <entryPoint>["java ","$JAVA_OPTS ${docker.java.security.egd} ","-jar
  64. ","/${project.build.finalName}.jar"]
  65. </entryPoint>
  66. <resources>
  67. <resource>
  68. <targetPath>/</targetPath>
  69. <directory>${project.build.directory}</directory>
  70. <include>${project.build.finalName}.jar</include>
  71. </resource>
  72. </resources>
  73. </configuration>
  74. </plugin>
  75. </plugins>
  76. <finalName>${project.artifactId}</finalName>
  77. </build>
  78. </project>