Questions tagged [maven-central]

The Official Maven Repository, hosted by Sonatype.

Maven Central is the official Apache Maven repository. It is hosted by Sonatype, for Apache Fundation.

It has moved several times from central.maven.org, repo1.maven.org and many other. The official address is now http://search.maven.org/

When using a Maven repository, it is important to be aware about Maven Coordinates.

The official guide about How to upload to the Central Maven repository may also come to help.

237 questions
242
votes
4 answers

Android buildscript repositories: jcenter VS mavencentral

The last time I used Android Studio, it generated .gradle files with mavencentral() buildscript repositories whereas now there's jcenter(). Could anyone explain the issues connected with this. Are there any other repos? When should we switch them?…
Jacob
  • 14,949
  • 19
  • 51
  • 74
217
votes
28 answers

Maven dependencies are failing with a 501 error

Recently Maven build jobs running in Jenkins are failing with the below exception saying that they couldn't pull dependencies from Maven Central and should use HTTPS. I'm not sure how to change the requests from HTTP to HTTPS. Could someone guide me…
Arunan Sugunakumar
  • 3,311
  • 3
  • 12
  • 20
163
votes
10 answers

Why am I getting "Received fatal alert: protocol_version" or "peer not authenticated" from Maven Central?

I'm getting the below errors when connecting to Maven Central / https://repo1.maven.org after June 18th 2018. Received fatal alert: protocol_version or Received fatal alert: peer not authenticated
Brian Fox
  • 6,782
  • 4
  • 27
  • 31
155
votes
5 answers

What is included in JCenter repository in Gradle?

Please note that JCenter will switch to readonly mode. Avoid using it. jcenter() will be removed in Gradle 8.0. From Gradle 1.7 there is a new public repository JCenter. repositories { jcenter() } So I want to ask if all JAR files from Maven…
Xelian
  • 16,680
  • 25
  • 99
  • 152
38
votes
2 answers

Gradle error "Attribute "xxx" has already been defined" in Android Studio

I created a project in Android Studio and added a few dependencies using Maven Central and when I try to compile, I run into this type of errors: Error:Gradle: Attribute "titleTextStyle" has already been defined Error:Gradle: Attribute…
Captain H.
  • 538
  • 1
  • 5
  • 13
31
votes
5 answers

Gradle Could not HEAD https://..pom > peer not authenticated

When you upgrade from gradle 2.0 to 2.1, you may see following error. Could not HEAD 'https://jcenter.bintray.com/de/undercouch/gradle-download-task/1.0/gradle-download-task-1.0.pom'. > peer not authenticated To be fair, this error is not…
Atilla Ozgur
  • 14,339
  • 3
  • 49
  • 69
28
votes
5 answers

Removing an artifact from Maven Central

I just sync'd an artifact to Maven Central from oss.sonatype.org. Immediately after doing so, a problem was discovered (of course). I haven't announced the new artifact yet, it is very unlikely that anyone is using it yet, so I'd like to take it…
emmby
  • 99,783
  • 65
  • 191
  • 249
27
votes
4 answers

I get an error downloading javax.media.jai_core:1.1.3 from maven central

I get an error downloading javax.media.jai_core:1.1.3 from maven central. The error is: download failed: javax.media#jai_core;1.1.3!jai_core.jar using play compiler.
gavioto
  • 1,695
  • 2
  • 17
  • 38
26
votes
4 answers

Android AAR package for native library

I'm looking for a way to package a native library into an AAR package, so it would be possible to use it via dependencies declaration in gradle script. By native library I mean set of .cpp files or compiled static library and a set of header files.…
igagis
  • 1,959
  • 1
  • 17
  • 27
25
votes
2 answers

Gradle 0.9.+/0.9.2 error: Unable to load class 'com.android.builder.testing.api.DeviceProvider'

This morning, all Android Studio projects started failing Gradle sync/build/clean with: > Could not create plugin of type 'AppPlugin'. The stacktrace looks like: * Exception is: org.gradle.api.GradleScriptException: A problem occurred evaluating…
blahdiblah
  • 33,069
  • 21
  • 98
  • 152
19
votes
4 answers

react-native Could not HEAD 'https://jcenter.bintray.com/com/facebook/react/react-native/maven-metadata.xml'

I created build yesterday and it was working fine . but when I try to create the release build today I got this. some if the question that are already asked here JCenter deprecation; impact on Gradle and Android: JCenter is at end of life" android…
Engr.Aftab Ufaq
  • 3,356
  • 3
  • 21
  • 47
16
votes
3 answers

Maven build gets connection reset when downloading artifacts

We have a maven build that runs in jenkins in amazon ec2 instances. The total build takes 20-30min and roughly every other run it fails because it cant download artifacts from maven central. This is the failing part of the log: [DEBUG] Lifecycle…
Bubbad
  • 191
  • 1
  • 1
  • 10
15
votes
1 answer

Gradle signing Android Library publications: Cannot perform signing task because it has no configured signatory

It's been hours and I'm stuck trying to publish/release signed artifacts on Maven Central. After finally publishing, I'm failing the test "Signature Validation". After some research, I found out that my publications are not signed even if my…
Itoun
  • 3,713
  • 5
  • 27
  • 47
14
votes
2 answers

Gradle signArchives unable to read Secret Key

I am trying to publish my Java Library to Maven Central. A part of this involves using the signing gradle plugin to sign the artifacts. I need to sign it without using the keyring file as document here as I cant provide my CI secure access to the…
Eduardo
  • 6,900
  • 17
  • 77
  • 121
14
votes
1 answer

How to release a Scala library to Maven Central using sbt?

I have an open source Scala project using SBT and I would like to release my library to Maven. How do I do it?
pathikrit
  • 32,469
  • 37
  • 142
  • 221
1
2 3
15 16