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
12
votes
2 answers

Could not find org.koin:koin-core:2.2.2

I have recently removed jcenter() repository from the project-level build Gradle. Since then Koin (version: 2.2.2) started giving me the compile-time error below: Could not find org.koin:koin-core:2.2.2
Aydinozkan
  • 2,508
  • 2
  • 21
  • 26
12
votes
4 answers

Change Gradle mavenCentral URL to My repo

While working with Gradle in my country, download jars from maven central is a very timely-costed work. I wanna change the mavenCentral to maven-nexus: which means whenever I use mavenCentral it always points to oschina ------edit------ I have lots…
Kevin
  • 781
  • 1
  • 9
  • 18
12
votes
2 answers

How to use the Processing core library with Maven?

I want to use Processing libs in my Maven project, but I can't find any artifact for dependency. Where can I get it?
PhilippeVienne
  • 550
  • 8
  • 19
10
votes
2 answers

nexus-staging-maven-plugin: maven deploy failed: An API incompatibility was encountered while executing

This worked fine for me be building under Java 8. Now under Java 17.01 I get this when I do mvn deploy. mvn install works fine. I tried 3.6.3 and 3.8.4 and updated (I think) all my plugins to the newest versions. Any ideas? [ERROR] Failed to execute…
sproketboy
  • 8,967
  • 18
  • 65
  • 95
10
votes
3 answers

Publishing own libary to mavenCentral from private repository

I have created an Android library for customer, which is stored in private repository (it can be Github or Bitbucket, does not matter). And now this library should be published to mavenCentral for future use by other programmers. And there are two…
Alex D.
  • 1,424
  • 15
  • 40
10
votes
1 answer

difference between com.sun.jna and net.java.dev.jna?

I'm looking through the central maven repository and seeing a net.java.dev.jna and a com.sun.jna groupId for JNA. The github for JNA, using the com.sun.jna path as the directories in their source code, indicates that 4.1 has been pushed into the…
user
  • 4,920
  • 3
  • 25
  • 38
10
votes
2 answers

How to remove all default resolvers from a Play! application?

Background: our company has several Play! apps, which have their tests run in our internal CI. Each Play application retrieves dependencies from various public repositories over http. This has not been ideal (it bypasses our internal Nexus…
Grundlefleck
  • 124,925
  • 25
  • 94
  • 111
8
votes
1 answer

Gradle downloads unrequired dependencies

I'm trying to download using Gradle my freshly published dependency from Maven Central: repositories { mavenCentral() } dependencies { implementation 'io.github.iltotore:ec-client_2.13:1.0-fixed' } When trying to build, I get an error: Could…
Il_totore
  • 133
  • 9
8
votes
2 answers

Close and release artifact on maven central using gradle

I have this gradle script: def configureUploadArtifacts(groupId, repoUrl, _packaging) { def gpgKeyId = System.getenv('GPG_KEY_ID') def gpgPassword = System.getenv('GPG_KEY_PASSWORD') def gpgFile = System.getenv('PATH_TO_GPG_FILE') …
TacB0sS
  • 10,106
  • 12
  • 75
  • 118
8
votes
3 answers

How does Maven decide what version of a plugin to use, when you don't specify any?

I recognized that Maven not always uses the latest version of a plugin. For example org.codehaus.mojo:sonar-maven-plugin version 2.7 has beed released on 19th of October but on 23th of October, 2.6 was still used by Maven (mvn sonar:sonar). I even…
BlackEye
  • 775
  • 11
  • 25
8
votes
1 answer

SBT with Maven Central - get rid of Scala version in artifact url

I am trying to use in my Scala project Java library which is on Maven Central. While resolving this dependency, SBT appends Scala version to the repository url which obviously does not exist in such a format. Can I somehow disable appending Scala…
mkorszun
  • 4,461
  • 6
  • 28
  • 43
7
votes
0 answers

Why can jcenter not resolve a dependency while mavenCentral can?

I have a project with just two dependencies, the relatively standard appcompat-v7 and ion. So my gradle files are pretty straightforward: Project buildscript { repositories { jcenter() } dependencies { classpath…
Tim
  • 41,901
  • 18
  • 127
  • 145
6
votes
2 answers

Missing checksum files when using Gradle maven-publish and signing plugins

I have a Java project that makes use of Gradle to build and package. My purpose is to create artifacts that are published to Maven Central. As a first step, I configured my Gradle project as shown in the following example from the…
Laurent
  • 14,122
  • 13
  • 57
  • 89
6
votes
1 answer

Gitlab-ci sign maven artifacts

I´m setting up a CI of my maven project in GitLab and I need to sign the jars before publishing them to maven central. (https://gitlab.com/awe-team/ade) I generate the key pair with gnuPgp and add the public key to my GitLab profile. Do I have a…
limkin
  • 315
  • 2
  • 10
6
votes
2 answers

What is the procedure and what are the requirements to submit artifacts to maven central repository?

I suppose that one needs some pass to submit an artifact to Maven Central repository. I'd like to know, in detail, what are the requirements, what is the procedure to follow, and if there is a tutorial or guide to help in this process. I heard you…
Luigi R. Viggiano
  • 8,659
  • 7
  • 53
  • 66
1
2
3
15 16