在ADT 20.0.0(鏈接自here)中,添加了manifestmerger
屬性(將庫項目的清單包含到應用程序項目中)。是否有可能在Maven構建中啓用此屬性?如果是,如何?Android maven - manifestmerger屬性
5
A
回答
1
該功能已經在Android,Maven的插件被添加和細節都可以從鏈接:https://github.com/jayway/maven-android-plugin/pull/135
2
從the pull request which added the feature提供一個確切的答案:
<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
以上答案上班的時候包括APKLIB的清單。
但是APKLIBs是AAR的前身,它是Android的當前庫包裝標準。
合併來自AAR體現使用以下命令:
<plugin>
<groupId>com.simpligility.maven.plugins</groupId>
<artifactId>android-maven-plugin</artifactId>
<configuration>
<manifestMergeLibraries>true</manifestMergeLibraries>
</configuration>
</plugin>
見http://simpligility.github.io/android-maven-plugin/manifest-merger-mojo.html
相關問題
- 1. maven-android-plugin傳遞構建屬性
- 2. Maven的屬性值
- 3. Maven項目屬性
- 4. 處理Maven屬性
- 5. Maven屬性列表
- 6. Maven發佈屬性
- 7. 在替換Maven屬性時修改Maven屬性的值
- 8. 屬性中的嵌套屬性(在屬性中)(ant to maven migration)
- 9. 問題與Maven屬性
- 10. maven中的屬性autocapitalization
- 11. 驗證Maven原型屬性
- 12. gwt.xml中的Maven屬性
- 13. 設置一個Maven屬性
- 14. 每個用戶Maven屬性
- 15. 讀取屬性 - Maven的
- 16. 未插入Maven屬性
- 17. Maven包裝屬性文件
- 18. Maven複製屬性文件
- 19. Maven - 設置依賴屬性
- 20. maven原型屬性替換
- 21. Ant繼承Maven屬性
- 22. 遞歸定義maven屬性
- 23. 如何創建maven屬性
- 24. maven變量屬性過濾
- 25. Maven:屬性不被替換
- 26. Maven:無法解析pom.xml中的屬性
- 27. android listview屬性
- 28. Android sys.powerctl屬性
- 29. Android MediaRecorder屬性
- 30. layout_width屬性android
NB這是一個APKLIB合併,而不是AAR。 – William