pom.xml 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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>usoft-credit-parent</artifactId>
  7. <groupId>com.usoft.credit</groupId>
  8. <version>1.0.0-SNAPSHOT</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>usoft-credit-grpc-api</artifactId>
  12. <packaging>jar</packaging>
  13. <version>${spring.active.profile}-SNAPSHOT</version>
  14. <dependencies>
  15. <dependency>
  16. <groupId>io.grpc</groupId>
  17. <artifactId>grpc-all</artifactId>
  18. </dependency>
  19. </dependencies>
  20. <build>
  21. <extensions>
  22. <extension>
  23. <groupId>kr.motd.maven</groupId>
  24. <artifactId>os-maven-plugin</artifactId>
  25. <version>1.5.0.Final</version>
  26. </extension>
  27. </extensions>
  28. <plugins>
  29. <plugin>
  30. <groupId>org.xolstice.maven.plugins</groupId>
  31. <artifactId>protobuf-maven-plugin</artifactId>
  32. <version>0.5.1</version>
  33. <configuration>
  34. <protocArtifact>com.google.protobuf:protoc:3.4.0:exe:${os.detected.classifier}
  35. </protocArtifact>
  36. <pluginId>grpc-java</pluginId>
  37. <pluginArtifact>
  38. io.grpc:protoc-gen-grpc-java:${protoc-gen-grpc-java.version}:exe:${os.detected.classifier}
  39. </pluginArtifact>
  40. </configuration>
  41. <extensions>true</extensions>
  42. <executions>
  43. <execution>
  44. <goals>
  45. <goal>compile</goal>
  46. <goal>compile-custom</goal>
  47. </goals>
  48. </execution>
  49. </executions>
  50. </plugin>
  51. <plugin>
  52. <groupId>org.apache.maven.plugins</groupId>
  53. <artifactId>maven-compiler-plugin</artifactId>
  54. <configuration>
  55. <source>1.8</source>
  56. <target>1.8</target>
  57. </configuration>
  58. </plugin>
  59. <plugin>
  60. <groupId>org.apache.maven.plugins</groupId>
  61. <artifactId>maven-source-plugin</artifactId>
  62. <version>3.0.1</version>
  63. <executions>
  64. <execution>
  65. <id>attach-sources</id>
  66. <phase>verify</phase>
  67. <goals>
  68. <goal>jar-no-fork</goal>
  69. </goals>
  70. </execution>
  71. </executions>
  72. </plugin>
  73. <plugin>
  74. <groupId>org.apache.maven.plugins</groupId>
  75. <artifactId>maven-surefire-plugin</artifactId>
  76. <version>2.12.4</version>
  77. <configuration>
  78. <!-- 设置打包过程中不编译单元测试代码 TEST -->
  79. <skipTests>true</skipTests>
  80. </configuration>
  81. </plugin>
  82. </plugins>
  83. </build>
  84. </project>