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