pom.xml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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-server</artifactId>
  7. <groupId>com.tzld.piaoquan</groupId>
  8. <version>1.0.0</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>recommend-server-client</artifactId>
  12. <properties>
  13. <maven.compiler.source>8</maven.compiler.source>
  14. <maven.compiler.target>8</maven.compiler.target>
  15. <grpc.version>1.9.2</grpc.version>
  16. <grpc.netty.version>1.9.2</grpc.netty.version>
  17. <jackson.version>5.3.9</jackson.version>
  18. </properties>
  19. <dependencies>
  20. <dependency>
  21. <groupId>io.grpc</groupId>
  22. <artifactId>grpc-netty</artifactId>
  23. <version>${grpc.version}</version>
  24. </dependency>
  25. <dependency>
  26. <groupId>io.grpc</groupId>
  27. <artifactId>grpc-protobuf</artifactId>
  28. <version>${grpc.version}</version>
  29. </dependency>
  30. <dependency>
  31. <groupId>io.grpc</groupId>
  32. <artifactId>grpc-stub</artifactId>
  33. <version>${grpc.version}</version>
  34. </dependency>
  35. <dependency>
  36. <groupId>io.netty</groupId>
  37. <artifactId>netty-common</artifactId>
  38. <version>4.1.50.Final</version>
  39. </dependency>
  40. <dependency>
  41. <groupId>com.fasterxml.jackson.core</groupId>
  42. <artifactId>jackson-annotations</artifactId>
  43. <version>${jackson.version}</version>
  44. </dependency>
  45. <dependency>
  46. <groupId>com.fasterxml.jackson.core</groupId>
  47. <artifactId>jackson-core</artifactId>
  48. <version>${jackson.version}</version>
  49. </dependency>
  50. <dependency>
  51. <groupId>com.fasterxml.jackson.core</groupId>
  52. <artifactId>jackson-databind</artifactId>
  53. <version>${jackson.version}</version>
  54. </dependency>
  55. </dependencies>
  56. <build>
  57. <extensions>
  58. <extension>
  59. <groupId>kr.motd.maven</groupId>
  60. <artifactId>os-maven-plugin</artifactId>
  61. <version>${os.plugin.version}</version>
  62. </extension>
  63. </extensions>
  64. <plugins>
  65. <plugin>
  66. <groupId>org.xolstice.maven.plugins</groupId>
  67. <artifactId>protobuf-maven-plugin</artifactId>
  68. <version>${protobuf.plugin.version}</version>
  69. <configuration>
  70. <protocArtifact>com.google.protobuf:protoc:${protoc.version}:exe:${os.detected.classifier}
  71. </protocArtifact>
  72. <pluginId>grpc-java</pluginId>
  73. <pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}
  74. </pluginArtifact>
  75. </configuration>
  76. <executions>
  77. <execution>
  78. <goals>
  79. <goal>compile</goal>
  80. <goal>compile-custom</goal>
  81. </goals>
  82. </execution>
  83. </executions>
  84. </plugin>
  85. </plugins>
  86. </build>
  87. </project>