sdk_readme.txt 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. SDK使用说明:
  2. 1. 把common.jar和sdk.jar 放到lib目录下(如没有需要手动建)。
  3. 2. 添加下属依赖,注意本地jar包的路径。
  4. 3. 修改build plugin,把common和sdk打包进去。
  5. 4. 使用方法请查看sdk.jar/cn.wildfirechat.sdk/Main.class(没有混淆,可以看到源码)
  6. <!--# 需要添加如下依赖-->
  7. <dependencies>
  8. <dependency>
  9. <groupId>com.google.code.gson</groupId>
  10. <artifactId>gson</artifactId>
  11. <version>2.8.9</version>
  12. </dependency>
  13. <dependency>
  14. <groupId>commons-httpclient</groupId>
  15. <artifactId>commons-httpclient</artifactId>
  16. <version>3.1</version>
  17. </dependency>
  18. <dependency>
  19. <groupId>org.apache.httpcomponents</groupId>
  20. <artifactId>httpclient</artifactId>
  21. <version>4.5.13</version>
  22. </dependency>
  23. <dependency>
  24. <groupId>commons-codec</groupId>
  25. <artifactId>commons-codec</artifactId>
  26. <version>1.15</version>
  27. </dependency>
  28. <dependency>
  29. <groupId>com.google.protobuf</groupId>
  30. <artifactId>protobuf-java</artifactId>
  31. <version>2.5.0</version>
  32. </dependency>
  33. <dependency>
  34. <groupId>cn.wildfirechat</groupId>
  35. <artifactId>sdk</artifactId>
  36. <version>0.20</version>
  37. <scope>system</scope>
  38. <systemPath>${project.basedir}/src/lib/sdk-0.20.jar</systemPath>
  39. </dependency>
  40. <dependency>
  41. <groupId>cn.wildfirechat</groupId>
  42. <artifactId>common</artifactId>
  43. <version>0.20</version>
  44. <scope>system</scope>
  45. <systemPath>${project.basedir}/src/lib/common-0.20.jar</systemPath>
  46. </dependency>
  47. </dependencies>
  48. <!--# 由于添加了本地jar包,需要打包时把sdk和common打进去,下面是springboot项目添加includeSystemScope部分,其它类型项目请百度。 -->
  49. <build>
  50. <plugins>
  51. <plugin>
  52. <groupId>org.springframework.boot</groupId>
  53. <artifactId>spring-boot-maven-plugin</artifactId>
  54. <configuration>
  55. <includeSystemScope>true</includeSystemScope>
  56. </configuration>
  57. </plugin>
  58. </plugins>
  59. </build>