官术网_书友最值得收藏!

  • Learning RxJava
  • Thomas Nield
  • 104字
  • 2021-07-02 22:22:50

Using Maven

You also have the option to use Maven, and you can view the appropriate configuration in The Central Repository by selecting the Apache Maven configuration information, as shown in the following screenshot:

Select and then copy the Apache Maven configuration

You can then copy and paste the <dependency> block containing the RxJava configuration and paste it inside a  <dependencies>block in your pom.xml file. Rebuild your project, and you should now have RxJava set up as a dependency. The x.y.z version number corresponds to the desired RxJava version that you want to use:

<project>
<modelVersion>4.0.0</modelVersion>
<groupId>org.nield</groupId>
<artifactId>mavenrxtest</artifactId>
<version>1.0</version>
<dependencies>
<dependency>
<groupId>io.reactivex.rxjava2</groupId>
<artifactId>rxjava</artifactId>
<version>x.y.z</version>
</dependency>
</dependencies>
</project>
主站蜘蛛池模板: 额尔古纳市| 青铜峡市| 铜鼓县| 治多县| 郸城县| 通化市| 乌拉特中旗| 四子王旗| 简阳市| 黎川县| 托里县| 炎陵县| 富锦市| 自治县| 四平市| 汝城县| 晋宁县| 蛟河市| 休宁县| 祁东县| 崇州市| 保定市| 嵊泗县| 池州市| 兴城市| 南城县| 全椒县| 原平市| 巴彦淖尔市| 吴川市| 岳阳县| 宜兰市| 图片| 琼中| 延川县| 年辖:市辖区| 日土县| 察隅县| 新丰县| 高唐县| 新兴县|