Maven

The Android Maven module is used to build applications for the Android OS and assemble libraries. These are to be used to create the Android Archive Library (AAR) and the inheritance APKLIB format, thus utilizing Apache Maven.

Here is a code sample of how to add a dependency of Android in pom.xml:

<dependencies>
<!-- https://mvnrepository.com/artifact/org.springframework.android/spring-android-rest-template -->
<dependency>
<groupId>org.springframework.android</groupId>
<artifactId>spring-android-rest-template</artifactId>
<version>2.0.0.BUILD-SNAPSHOT</version>
</dependency>

<!-- https://mvnrepository.com/artifact/org.springframework.android/spring-android-core -->
<dependency>
<groupId>org.springframework.android</groupId>
<artifactId>spring-android-core</artifactId>
<version>1.0.1.RELEASE</version>
</dependency>

</dependencies>
<repositories>
<repository>
<id>spring-snapshots</id>
<name>Spring Snapshots</name>
<url>https://repo.spring.io/libs-snapshot</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.12.163.175