pom.xml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <parent>
  4. <groupId>org.apache.dolphinscheduler</groupId>
  5. <artifactId>dolphinscheduler</artifactId>
  6. <version>1.1.0-SNAPSHOT</version>
  7. </parent>
  8. <modelVersion>4.0.0</modelVersion>
  9. <artifactId>dolphinscheduler-rpc</artifactId>
  10. <name>dolphinscheduler-rpc</name>
  11. <url>https://github.com/apache/incubator-dolphinscheduler</url>
  12. <properties>
  13. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  14. <maven.compiler.source>1.7</maven.compiler.source>
  15. <maven.compiler.target>1.7</maven.compiler.target>
  16. <protobuf.output.directory>${project.basedir}/src/main/java</protobuf.output.directory>
  17. <protobuf.version>3.5.1</protobuf.version>
  18. <grpc.version>1.9.0</grpc.version>
  19. </properties>
  20. <dependencies>
  21. <dependency>
  22. <groupId>com.google.protobuf</groupId>
  23. <artifactId>protobuf-java</artifactId>
  24. <version>${protobuf.version}</version>
  25. </dependency>
  26. <dependency>
  27. <groupId>io.grpc</groupId>
  28. <artifactId>grpc-netty</artifactId>
  29. <version>${grpc.version}</version>
  30. </dependency>
  31. <dependency>
  32. <groupId>io.grpc</groupId>
  33. <artifactId>grpc-protobuf</artifactId>
  34. <version>${grpc.version}</version>
  35. </dependency>
  36. <dependency>
  37. <groupId>io.grpc</groupId>
  38. <artifactId>grpc-stub</artifactId>
  39. <version>${grpc.version}</version>
  40. </dependency>
  41. <dependency>
  42. <groupId>com.google.guava</groupId>
  43. <artifactId>guava</artifactId>
  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.5.0.Final</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.5.0</version>
  59. <configuration>
  60. <protocArtifact>com.google.protobuf:protoc:3.5.1-1:exe:${os.detected.classifier}</protocArtifact>
  61. <pluginId>grpc-java</pluginId>
  62. <pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}</pluginArtifact>
  63. </configuration>
  64. <executions>
  65. <execution>
  66. <id>compile</id>
  67. <goals>
  68. <goal>compile</goal>
  69. </goals>
  70. </execution>
  71. <execution>
  72. <id>compile-custom</id>
  73. <goals>
  74. <goal>compile-custom</goal>
  75. </goals>
  76. <configuration>
  77. <outputDirectory>${protobuf.output.directory}</outputDirectory>
  78. </configuration>
  79. </execution>
  80. </executions>
  81. </plugin>
  82. <!-- add generated proto buffer classes into the package -->
  83. <plugin>
  84. <groupId>org.codehaus.mojo</groupId>
  85. <artifactId>build-helper-maven-plugin</artifactId>
  86. <version>1.7</version>
  87. <executions>
  88. <execution>
  89. <id>add-classes</id>
  90. <phase>generate-sources</phase>
  91. <goals>
  92. <goal>add-source</goal>
  93. </goals>
  94. <configuration>
  95. <sources>
  96. <source>${protobuf.output.directory}</source>
  97. </sources>
  98. </configuration>
  99. </execution>
  100. </executions>
  101. </plugin>
  102. <plugin>
  103. <groupId>org.apache.maven.plugins</groupId>
  104. <artifactId>maven-compiler-plugin</artifactId>
  105. <configuration>
  106. <source>${java.version}</source>
  107. <target>${java.version}</target>
  108. <encoding>${project.build.sourceEncoding}</encoding>
  109. </configuration>
  110. </plugin>
  111. </plugins>
  112. </build>
  113. </project>