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
5
votes
1 answer

Maven Checks the local repository but downloads from central. Why?

We have a local artifactory repository setup for caching. It is configured in our projects, but when I'm looking at stdout of the build process I see rows like this Downloading:…
Jens Schauder
  • 77,657
  • 34
  • 181
  • 348
5
votes
0 answers

Publish to MavenCentral with private submodule

Our Android project is a monorepo containing couple of app modules, and even more library modules. One of the libraries should be also accessible to other developers so we have decided to deploy it on MavenCentral. Let's call it the library L. This…
Pilsner25
  • 141
  • 1
  • 5
5
votes
1 answer

Publish kotlin multiplatform library to Maven Central (InvalidMavenPublicationException multiple artifacts with the identical ...)

As Jcenter will be shutdown soon I’m trying to migrate my libs to Maven Central. I have searched a lot to find any working script but with no luck. There is official docs, but it is like a joke, there just told to put maven-publish plugin to the…
Oleksandr Albul
  • 1,611
  • 1
  • 23
  • 31
5
votes
1 answer

How to add category and tags to artefact in mavenrepository

Does anyone could explain how to update these values in the Maven Repository repository for my artifact: Category Tags
Oleg Cherednik
  • 17,377
  • 4
  • 21
  • 35
5
votes
3 answers

Getting 400 Bad Request when deploying to Maven Central with gpg:sign-and-deploy-file

I have a .jar file that I want to upload to Maven Central using Travis. The Jira ticket to create an account was sent to Sonatype by my company, and the account has been created. The command I have put in the Travis script to upload the artifact is…
5
votes
2 answers

New-added Maven plugin becomes red in IntelliJ

I'm following this guideline for a Maven plugin, after which I've added the following: org.apache.maven.plugins maven-release-plugin 2.5.3 maven-release-plugin…
wawawa
  • 2,835
  • 6
  • 44
  • 105
5
votes
1 answer

Maven Central vs Other Repos?

On the maven centrral, I can see several other Repositories available for some of the libraries. For example - Apache Common BeanUtils is available in Central, Redhat GA, JBoss 3rd-party etc. The library name changes as well. For example, Maven…
Vicky
  • 5,380
  • 18
  • 60
  • 83
4
votes
0 answers

How to add the OpenCV gradle dependency to my pure Kotlin code, without migrating to Android Studio or using a third-party publication?

I am looking for the Gradle dependency for OpenCV so I can use its API with some Kotlin code. In my search I have come across the following makeshift solutions Download the jar and use that (I want a mavenLike dependency - the one that goes like…
lineage
  • 792
  • 1
  • 8
  • 20
4
votes
2 answers

Gradle issue when migrating from JCenter to mavenCentral repository

As you maybe already know, JFrog announced that Bintray, JCenter, GoCenter, and ChartCenter will go down at 1st May this year. Since JCenter is widely used for various dependencies as main repo in Android projects, alternative repo should be used,…
aherman
  • 900
  • 1
  • 8
  • 16
4
votes
1 answer

sbt release to Maven central fails with no public key error

I tried to release better-files to Maven central and I am getting this error. I tried this on fresh checkout on multiple different machines. My steps: Step 1: Generate keys > sbt sbt:better-files-root> pgp-cmd gen-key Please enter the name…
pathikrit
  • 32,469
  • 37
  • 142
  • 221
4
votes
3 answers

Gradle is selecting wrong dependency version

I am seeing some weirdness in my Gradle build. I have a Spring Boot app (which uses Gradle for its build) and am trying to pull in both the Hibernate Validator as well as Hibernate Core. Here's the dependencies declaration in my build.gradle…
smeeb
  • 27,777
  • 57
  • 250
  • 447
4
votes
1 answer

Equinox maven dependency (for maven or gradle)

Is there Equinox consumable as maven dependency with maven or gradle The latest in Central is 'org.eclipse.osgi:org.eclipse.osgi:3.7.1', while the latest seems to be 3.10 http://download.eclipse.org/equinox/
Paul Verest
  • 60,022
  • 51
  • 208
  • 332
4
votes
2 answers

Maven Central: POM is available but not JAR

I'm currently busy migrating fairly old projects from Ant to Gradle. This includes replacing the lib directories with equivalent Gradle dependency management. Currently I'm having trouble with Maven Central. Some dependencies (I found at least 3)…
Heinrich Filter
  • 5,760
  • 1
  • 33
  • 34
4
votes
2 answers

Releasing to Maven Central

I was added as a developer to the Maven project and now I need to make a release. I've added nexus-staging-maven-plugin to pom.xml file. org.sonatype.plugins nexus-staging-maven-plugin
divanov
  • 6,173
  • 3
  • 32
  • 51
4
votes
1 answer

Maven package signing or how you trust/verify Maven Central artifacts for integrity and authentity?

I come from C world to Java. In C most libraries are system from signed packages, from Open Source home page with .gpg signing or come from vendors through trusted sources. In case of Java package distribution I investigate .m2 directory and file…
gavenkoa
  • 45,285
  • 19
  • 251
  • 303
1 2
3
15 16