我尝试嵌入位于Maven Central的Otto库.
buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:0.6.3'
    }
}
apply plugin: 'android'
dependencies {
    compile 'com.google.android.gms:play-services:4.0.30'
    compile 'com.android.support:support-v13:19.0.0'
    compile 'com.squareup:otto:1.3.4'
}
但是我得到了例外:
A problem occurred configuring root project 'sample-project'.
> Failed to notify project evaluation listener.
   > Could not resolve all dependencies for configuration ':_DebugCompile'.
      > Could not find com.squareup:otto:otto:1.3.4.
        Required by:
            :sample-project:unspecified
我试图刷新依赖项(gradle --refresh-dependencies)但它没有帮助.
MavenCentral包含许多工件。其中的一些存在严重漏洞,例如威胁安全性,因此不应使用。
我知道Nexus防火墙可以提供昂贵的服务来分析这些工件。是否有其他方法可以(至少部分)提供针对此类漏洞的保护?
在.grails文件夹下删除常春藤缓存后,现在我的任何应用程序都在工作(甚至是新创建的)因为无法解决Grails 2.2.5版本中的依赖性问题.
我在编译中得到了以下日志
        ::::::::::::::::::::::::::::::::::::::::::::::
        ::          UNRESOLVED DEPENDENCIES         ::
        ::::::::::::::::::::::::::::::::::::::::::::::
        :: org.grails.plugins#cache;1.0.1: not found
        :: org.grails.plugins#rendering;0.4.4: not found
        :: org.grails.plugins#ckeditor;3.6.6.1.0: not found
        :: org.grails.plugins#rest-client-builder;1.0.2: not found
        :: org.grails.plugins#spring-security-core;1.2.7.3: not found
        ::::::::::::::::::::::::::::::::::::::::::::::
| Error Failed to resolve dependencies (Set log level to 'warn' in BuildConfig.groovy for more information):
- org.grails.plugins:cache:1.0.1
- org.grails.plugins:rendering:0.4.4
- org.grails.plugins:ckeditor:3.6.6.1.0
- org.grails.plugins:rest-client-builder:1.0.2
- org.grails.plugins:spring-security-core:1.2.7.3
I have a legacy project with this dependency:
<dependency>
    <groupId>javax.j2ee</groupId>
    <artifactId>j2ee</artifactId>
    <version>1.4</version>
</dependency>
Although, I can find this on Maven here, if I try to download the jar I get a 404.
So what happened to this jar? With what should I replace it?
Thanks
无论如何在Android工作室IDE中搜索依赖项而不是去jcenter站点或maven中心?在Eclipse中,有一种方法可以从帮助菜单中搜索 - >安装新软件
更新:还有https://github.com/cesarferreira/alfi,它可以用作库查找器.
我想知道是否有一种标准方法来备份和恢复Nexus OSS 3 Artifact Repository.
是否足以备份"数据"目录并将其复制到正在运行的新实例?
我使用不同类型的存储库 - Maven,NPM,Docker等.
我正在和一些外部图书馆合作,今天早上我偶然发现了一个想法:如果发布者从JCenter,Maven Central等删除他的图书馆怎么办?(我只关注那两个主要的回购.)
根据这个和其他一些研究,Maven Central似乎保存了库,你无法删除某些东西.
但是,对于JCenter,我无法找到准确的答案.所以我创建了自己的Bintray帐户,创建了一个包并将一些库推送到它.然后我点击这个按钮将它链接到JCenter(等待6小时后接受,为什么呢?(合法问题)):
现在我有了一个可以通过Jcenter从Android Studio项目访问的库,我试图在Bintray帐户中乱七八糟.
来自这个线程和文档,我应该能够删除一些东西,并使我的整个包消失.我唯一能做的就是删除帐户,完整包或版本.我还没有测试它,因为根据线程,JCenter会创建一个它的副本,如果不取消链接,我将无法控制它.但是,我无法像在文档中那样在一个版本中手动删除一个文件,也不能像在线程中那样将JCenter与我的包"取消链接".
所以,我有几个问题:
我跑
mvn dependency:resolve -Dclassifier=javadoc
报告说
[INFO] The following files have NOT been resolved:
我知道 Maven 存储库由 Maven Central 等志愿者组织托管,并托管由志愿者完成的开源项目。
但是缺少 javadoc 让我很生气,因为使用没有 javadoc 的包很困难(让 IDE 进行网络搜索并阅读过时的文档)。
我曾经报告在 Central 中缺少 Hibernate javadoc(在 Hibernate BTS 中)。没有成功。对于另一个项目,我没有强烈的意图去查找主页和 BTS/邮件列表来报告丢失的 javadocs。
改善情况的最佳方法是什么?
我有一个工件(jar),该工件已部署到bintray,并且在jcenter上可用。我也希望该工件可以在Maven Central上使用。
Bintray的可用说明(位于此处:https ://www.jfrog.com/confluence/display/BT/Syncing+with+Third-Party+Platforms )告诉我单击“版本”中的“ Maven Central”选项卡Bintray用户界面中我的工件版本的页面。不幸的是,该页面上没有“ Maven Central”选项卡。关于如何使该工件从Bintray / jcenter同步到Maven Central的任何建议?谢谢!