pom.xml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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. <parent>
  6. <artifactId>blade-ops</artifactId>
  7. <groupId>org.springblade</groupId>
  8. <version>2.0.7.RELEASE</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>blade-log</artifactId>
  12. <name>${project.artifactId}</name>
  13. <version>${bladex.project.version}</version>
  14. <packaging>jar</packaging>
  15. <dependencies>
  16. <!--Blade-->
  17. <dependency>
  18. <groupId>org.springblade</groupId>
  19. <artifactId>blade-common</artifactId>
  20. <version>${bladex.project.version}</version>
  21. </dependency>
  22. <dependency>
  23. <groupId>org.springblade</groupId>
  24. <artifactId>blade-core-boot</artifactId>
  25. <version>${bladex.tool.version}</version>
  26. </dependency>
  27. <dependency>
  28. <groupId>org.springblade</groupId>
  29. <artifactId>blade-starter-tenant</artifactId>
  30. <version>${bladex.tool.version}</version>
  31. </dependency>
  32. </dependencies>
  33. <build>
  34. <plugins>
  35. <plugin>
  36. <groupId>com.spotify</groupId>
  37. <artifactId>docker-maven-plugin</artifactId>
  38. <version>${docker.plugin.version}</version>
  39. <configuration>
  40. <imageName>${docker.registry.url}/blade/${project.artifactId}:${project.version}</imageName>
  41. <dockerDirectory>${project.basedir}</dockerDirectory>
  42. <dockerHost>${docker.registry.host}</dockerHost>
  43. <resources>
  44. <resource>
  45. <targetPath>/</targetPath>
  46. <directory>${project.build.directory}</directory>
  47. <include>${project.build.finalName}.jar</include>
  48. </resource>
  49. </resources>
  50. <registryUrl>${docker.registry.url}</registryUrl>
  51. <serverId>${docker.registry.url}</serverId>
  52. <pushImage>true</pushImage>
  53. </configuration>
  54. </plugin>
  55. <plugin>
  56. <groupId>org.apache.maven.plugins</groupId>
  57. <artifactId>maven-antrun-plugin</artifactId>
  58. <executions>
  59. <execution>
  60. <phase>package</phase>
  61. <goals>
  62. <goal>run</goal>
  63. </goals>
  64. <configuration>
  65. <tasks>
  66. <!--suppress UnresolvedMavenProperty -->
  67. <copy overwrite="true"
  68. tofile="${session.executionRootDirectory}/target/${project.artifactId}.jar"
  69. file="${project.build.directory}/${project.artifactId}.jar" />
  70. </tasks>
  71. </configuration>
  72. </execution>
  73. </executions>
  74. </plugin>
  75. </plugins>
  76. </build>
  77. </project>