2012-09-21 16 views
5

ADT 20.0.0'da (here'dan itibaren) manifestmerger özelliği (kütüphane projesinin uygulama projesine ilişkin açıklamasını içerecek şekilde) eklendi. Bu özelliği maven yapılarında etkinleştirmek mümkün mü? eğer evet, nasıl?Android maven - manifestgerger özelliği

cevap

2

the pull request which added the feature yapılan bire bir cevap vermek için:

<plugin> 
    <groupId>com.jayway.maven.plugins.android.generation2</groupId> 
    <artifactId>android-maven-plugin</artifactId> 
    <configuration> 
     <!-- add the following mergeManifests option --> 
     <mergeManifests>true</mergeManifests> 
    </configuration> 
</plugin> 
+0

Benim için çalıştı, teşekkürler – dleerob

+0

NB bu AAR değil, bir APKLIB birleştirme içindir. – William

0

yukarıdaki cevapları ne zaman işe APKLIBs gelen manifestolar dahil olmak üzere.

Ama APKLIB'ler, Android için geçerli kitaplık paketleme standardı olan AAR'ın öncüsüdür.

AAR manifestolar aşağıdaki kullanmak birleştirmek için:

<plugin> 
    <groupId>com.simpligility.maven.plugins</groupId> 
    <artifactId>android-maven-plugin</artifactId> 
    <configuration> 
     <manifestMergeLibraries>true</manifestMergeLibraries> 
    </configuration> 
</plugin> 

bu, bir APKLIB birleştirme için AAR değil http://simpligility.github.io/android-maven-plugin/manifest-merger-mojo.html