为什么Android的版本Maven的中央不包括谷歌蜜蜂(图)? [英] Why Android versions on Maven Central don't include Google Apis (maps)?

查看:154
本文介绍了为什么Android的版本Maven的中央不包括谷歌蜜蜂(图)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大部分Android的SDK的罐子现在在Maven的中央,但没有软件开发工具包的谷歌的API版本的。你知道为什么吗 ?是否有任何限制添加它们?

Most of the jars of Android SDKs are now in maven central, but none of the Google Api versions of SDKs. Do you know why ? Is there any restriction to add them ?

更新:我不是在寻找一个解决办法(如添加本地他们到我的回购

Update : I am not looking for a workaround (like adding them locally to my repo).

推荐答案

这是由 Android SDK中EULA禁止

1.1的Andr​​oid软件开发工具包的(以下简称本许可协议的SDK,在具体包括Android系统文件,打包的API,和谷歌API的加载项)是授权给你受本许可协议的条款。本许可协议构成您与谷歌之间的具有法律约束力的合同中关于您使用的SDK。

1.1 The Android Software Development Kit (referred to in this License Agreement as the "SDK" and specifically including the Android system files, packaged APIs, and Google APIs add-ons) is licensed to you subject to the terms of this License Agreement. This License Agreement forms a legally binding contract between you and Google in relation to your use of the SDK.

...

3.3您不得使用SDK为任何目的不前$ P $本许可协议允许pssly。除非适用的第三方许可要求的范围内,您不得:(a)复制(备份目的除外),修改,改编,再分发,反编译,反向工程,反汇编,或创建SDK的衍生作品或SDK的任何部分; 或(b)加载SDK的任何部分到手机或除个人电脑的其他硬件设备,结合SDK的任何部分与其他软件,或分发任何软件或设备加入SDK的一部分。

3.3 You may not use the SDK for any purpose not expressly permitted by this License Agreement. Except to the extent required by applicable third party licenses, you may not: (a) copy (except for backup purposes), modify, adapt, redistribute, decompile, reverse engineer, disassemble, or create derivative works of the SDK or any part of the SDK; or (b) load any part of the SDK onto a mobile handset or any other hardware device except a personal computer, combine any part of the SDK with other software, or distribute any software or device incorporating a part of the SDK.

对Maven的方法 的Andr​​oid版采用的是的android.jar从源代码编译翻出源和资源文件复制中的android.jar该SDK。正如你所看到的,这显然是不适合一些谷歌的API插件这是接近源头,像地图成为可能。

The approach Android for Maven used is compile android.jar from source and pulls out source and resource files to replicate android.jar in the SDK. As you can see, this is obviously not possible for some Google APIs addon which is close source, like Maps.

好消息是Android团队开始重塑生成系统(更多细节处的此处),希望结束源罐子会照顾和Android团队在中央存储库管理,见曼弗雷德的答复<一个href=\"https://groups.google.com/forum/?fromgroups=#!topic/maven-android-developers/lQCMRKInuyk\">here.

The good news is Android team starts reinventing the build system (more details at here), hopefully the close source jars will be taken care and managed in central repository by Android team, see Manfred's reply here.

这篇关于为什么Android的版本Maven的中央不包括谷歌蜜蜂(图)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆