android - 如何设置 Artifactory 使用 https ://maven. google.com 作为远程仓库?

标签 android maven android-gradle-plugin artifactory

我有一个 Android 项目正在使用大于 3.0 的 gradle 版本进行更新。以前 gradle 插件是从 jcenter() 中检索出来的,但现在 Google 已将其移至他们自己的存储库。

我想在 Artifactory 中将 Google maven 服务器设置为远程服务器,但我的 Android 项目似乎没有在我设置的 google 远程服务器上找到它。

我需要以这种特定方式设置它,因为公司希望受控构建能够以离线方式重现,这种离线方式只发送到内部网络上的服务器,而不发送到 Web。因此,根据公司 SOP, future 仅仅使用 google maven 服务器是不够的。

我将远程设置为:

URL: https://maven.google.com
Repository Layout: maven-2-default
Repository Layout Mapping: maven-2-default

我目前使用的是 4.9.0,是否需要使用最新版本的 artifactory。我必须通过公司的 IT 组来升级版本,所以这就是为什么我没有把它作为我的第一选择。

谢谢!

最佳答案

https://maven.google.com重定向至 https://dl.google.com/dl/android/maven2/index.html ,但 Artifactory 引发错误 404,您需要配置 https://dl.google.com/dl/在远程仓库中

最好的问候。

关于android - 如何设置 Artifactory 使用 https ://maven. google.com 作为远程仓库?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48504766/

相关文章:

java - 我们如何更改 Java 项目的 pom.xml 中定义的特定依赖项的位置?

android-studio - 如何检测AndroidStudio项目的build.gradle中何时存在依赖库版本更新

android - Rx-Android 库导入 rx.android.plugins vs io.reactivex.android.plugins

android - 在浏览器中打开 rss 链接时如何打开我的 Android 应用程序?

java - 将过滤器添加到蓝牙发现

android - cookie 是移动应用程序中 session 管理的好主意吗?

java - 如何在子 pom 中使用父 pom 的配置文件属性?

java - 无法使用maven在spring mvc项目中启动服务器

android - 毕业: apply plugin only for specific flavor

java - 从电子邮件中的 url 调用应用程序 Activity