eclipse - Create Android Archive Library(AAR) with maven only -


I am developing a library project which I would like to distribute to other developers.

There have been many discussions on this topic on the Internet, people have suggested to create a distributed version library project which contains only the jar of my library project & amp; other resources. It feels good

Then, suddenly I found that people have suggested to make the AdWords Archive Library (AAR). But they all use a device called Gradle

I am using Elysee Meway for my Android Library Project. My question is, is it possible to get AAR without using my Android Library Project Gradat , but only with Maven? if so, how?

The Android-Maven plugin allows a package to be packaged as an AR-file.

From your documents:

Production of an AR

If you have a bunch of Java code that you want to share, then the best The solution is to create a Java project and publish it as a plain Java storage (i.e. jar).

But if you have code and Android resources that you want to share, then you really want to share it as an Android collection (i.e. AAR). Luckily this is easy.

Configure your project for just packaging air (and add android-maven-plugin to create plugins / plugins for your Maven project). Example

  & lt; Project xmlns = "http://maven.apache.org/POM/4.0.0" xmlns: xsi = "http: //www.w3.org./001/xmlschema-example" xsi: schema location = "http: / /maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> & Lt; ModelVersion & gt; 4.0.0 & lt; / ModelVersion & gt; & Lt; Group & gt; Com.mycoolcompany & lt; / Group & gt; & Lt; ArtifactId & gt; Normal lib & lt; / ArtifactId> & Lt; Version & gt; 1.2.3-snapshots & lt; / Edition & gt; & Lt; Packaging & gt; R & lt; / Packaging & gt; ... & lt; / Project & gt;  

Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -