pom.xml 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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>com.xuxueli</groupId>
  8. <artifactId>xxl-job-executor-samples</artifactId>
  9. <version>3.2.1-SNAPSHOT</version>
  10. </parent>
  11. <artifactId>xxl-job-executor-sample-springboot-ai</artifactId>
  12. <packaging>jar</packaging>
  13. <name>${project.artifactId}</name>
  14. <description>Example executor project for spring boot.</description>
  15. <url>https://www.xuxueli.com/</url>
  16. <properties>
  17. <spring-ai.version>1.0.1</spring-ai.version>
  18. <dify-java-client.version>1.1.7</dify-java-client.version>
  19. </properties>
  20. <dependencyManagement>
  21. <dependencies>
  22. <dependency>
  23. <groupId>org.springframework.boot</groupId>
  24. <artifactId>spring-boot-starter-parent</artifactId>
  25. <version>${spring-boot.version}</version>
  26. <type>pom</type>
  27. <scope>import</scope>
  28. </dependency>
  29. </dependencies>
  30. </dependencyManagement>
  31. <dependencies>
  32. <!-- spring-boot-starter-web (spring-webmvc + tomcat) -->
  33. <dependency>
  34. <groupId>org.springframework.boot</groupId>
  35. <artifactId>spring-boot-starter-web</artifactId>
  36. </dependency>
  37. <dependency>
  38. <groupId>org.springframework.boot</groupId>
  39. <artifactId>spring-boot-starter-test</artifactId>
  40. <scope>test</scope>
  41. </dependency>
  42. <!-- xxl-job-core -->
  43. <dependency>
  44. <groupId>com.xuxueli</groupId>
  45. <artifactId>xxl-job-core</artifactId>
  46. <version>${project.parent.version}</version>
  47. </dependency>
  48. <!-- spring-ai -->
  49. <dependency>
  50. <groupId>org.springframework.ai</groupId>
  51. <artifactId>spring-ai-starter-model-ollama</artifactId>
  52. <version>${spring-ai.version}</version>
  53. </dependency>
  54. <!-- dify -->
  55. <dependency>
  56. <groupId>io.github.imfangs</groupId>
  57. <artifactId>dify-java-client</artifactId>
  58. <version>${dify-java-client.version}</version>
  59. </dependency>
  60. </dependencies>
  61. <build>
  62. <plugins>
  63. <!-- spring-boot-maven-plugin (提供了直接运行项目的插件:如果是通过parent方式继承spring-boot-starter-parent则不用此插件) -->
  64. <plugin>
  65. <groupId>org.springframework.boot</groupId>
  66. <artifactId>spring-boot-maven-plugin</artifactId>
  67. <!--<version>${spring-boot.version}</version>-->
  68. <executions>
  69. <execution>
  70. <goals>
  71. <goal>repackage</goal>
  72. </goals>
  73. </execution>
  74. </executions>
  75. </plugin>
  76. </plugins>
  77. </build>
  78. </project>