pom.xml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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-rest-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. <!--此处注释掉原因:不生成接口调用类,只生成实体类-->
  37. <!--<pluginId>grpc-java</pluginId>
  38. <pluginArtifact>
  39. io.grpc:protoc-gen-grpc-java:${protoc-gen-grpc-java.version}:exe:${os.detected.classifier}
  40. </pluginArtifact>-->
  41. </configuration>
  42. <extensions>true</extensions>
  43. <executions>
  44. <execution>
  45. <goals>
  46. <goal>compile</goal>
  47. <!--<goal>compile-custom</goal>-->
  48. </goals>
  49. </execution>
  50. </executions>
  51. </plugin>
  52. <plugin>
  53. <groupId>org.apache.maven.plugins</groupId>
  54. <artifactId>maven-compiler-plugin</artifactId>
  55. <configuration>
  56. <source>1.8</source>
  57. <target>1.8</target>
  58. </configuration>
  59. </plugin>
  60. <plugin>
  61. <groupId>org.apache.maven.plugins</groupId>
  62. <artifactId>maven-source-plugin</artifactId>
  63. <version>3.0.1</version>
  64. <executions>
  65. <execution>
  66. <id>attach-sources</id>
  67. <phase>verify</phase>
  68. <goals>
  69. <goal>jar-no-fork</goal>
  70. </goals>
  71. </execution>
  72. </executions>
  73. </plugin>
  74. <plugin>
  75. <groupId>org.apache.maven.plugins</groupId>
  76. <artifactId>maven-surefire-plugin</artifactId>
  77. <version>2.12.4</version>
  78. <configuration>
  79. <!-- 设置打包过程中不编译单元测试代码 TEST -->
  80. <skipTests>true</skipTests>
  81. </configuration>
  82. </plugin>
  83. </plugins>
  84. </build>
  85. </project>