pom.xml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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>recommend-model</artifactId>
  7. <groupId>com.tzld.piaoquan</groupId>
  8. <version>1.0.0</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>recommend-model-client</artifactId>
  12. <version>1.0.0</version>
  13. <dependencies>
  14. <dependency>
  15. <groupId>it.unimi.dsi</groupId>
  16. <artifactId>fastutil</artifactId>
  17. <version>7.0.12</version>
  18. </dependency>
  19. <dependency>
  20. <groupId>net.devh</groupId>
  21. <artifactId>grpc-client-spring-boot-starter</artifactId>
  22. <version>2.9.0.RELEASE</version>
  23. </dependency>
  24. <dependency>
  25. <groupId>com.google.protobuf</groupId>
  26. <artifactId>protobuf-java</artifactId>
  27. <version>3.12.0</version>
  28. </dependency>
  29. <dependency>
  30. <groupId>org.projectlombok</groupId>
  31. <artifactId>lombok</artifactId>
  32. <version>1.16.8</version>
  33. </dependency>
  34. <dependency>
  35. <groupId>com.google.protobuf</groupId>
  36. <artifactId>protobuf-java-util</artifactId>
  37. <version>3.6.0</version>
  38. <exclusions>
  39. <exclusion>
  40. <artifactId>protobuf-java</artifactId>
  41. <groupId>com.google.protobuf</groupId>
  42. </exclusion>
  43. </exclusions>
  44. </dependency>
  45. </dependencies>
  46. <build>
  47. <extensions>
  48. <extension>
  49. <groupId>kr.motd.maven</groupId>
  50. <artifactId>os-maven-plugin</artifactId>
  51. <version>1.6.0</version>
  52. </extension>
  53. </extensions>
  54. <plugins>
  55. <plugin>
  56. <groupId>org.xolstice.maven.plugins</groupId>
  57. <artifactId>protobuf-maven-plugin</artifactId>
  58. <version>0.6.1</version>
  59. <configuration>
  60. <protocArtifact>com.google.protobuf:protoc:3.12.0:exe:${os.detected.classifier}</protocArtifact>
  61. <pluginId>grpc-java</pluginId>
  62. <pluginArtifact>io.grpc:protoc-gen-grpc-java:1.34.1:exe:${os.detected.classifier}</pluginArtifact>
  63. <!--设置grpc生成代码到指定路径-->
  64. <outputDirectory>${project.basedir}/src/main/java</outputDirectory>
  65. <!--生成代码前是否清空目录-->
  66. <clearOutputDirectory>false</clearOutputDirectory>
  67. </configuration>
  68. <executions>
  69. <execution>
  70. <goals>
  71. <goal>compile</goal>
  72. <goal>compile-custom</goal>
  73. </goals>
  74. </execution>
  75. </executions>
  76. </plugin>
  77. <!-- 设置多个源文件夹 -->
  78. <plugin>
  79. <groupId>org.codehaus.mojo</groupId>
  80. <artifactId>build-helper-maven-plugin</artifactId>
  81. <version>3.0.0</version>
  82. <executions>
  83. <!-- 添加主源码目录 -->
  84. <execution>
  85. <id>add-source</id>
  86. <phase>generate-sources</phase>
  87. <goals>
  88. <goal>add-source</goal>
  89. </goals>
  90. <configuration>
  91. <sources>
  92. <source>${project.basedir}/src/main/java</source>
  93. </sources>
  94. </configuration>
  95. </execution>
  96. </executions>
  97. </plugin>
  98. </plugins>
  99. </build>
  100. </project>