3
4

2 回答 2

1

如果您希望 Gradle 在一个存储库中查找 POM,并在另一个存储库中查找相应的 Jar,则必须执行以下操作:

repositories {
  url 'http://repo1.maven.org/maven2'
  artifactUrls 'http://repository.jboss.org/nexus/content/groups/public-jboss'
}

相应地配置 artifactUrls ..

于 2015-03-16T08:36:08.190 回答
0

Some organizations prevent publishing of binary content on public forums. For example, Oracle prevents publishing of JAR files containing its JDBC drivers on online forums, which includes Maven Central. See this as an example. For some time, JAVAX JARs were similarly not published to Maven Central.

You could change your dependency to javax.mail:javax.mail-api:1.5.2, which is the latest available version on Maven Central.

于 2015-03-16T08:35:53.057 回答