https://kotlinlang.org logo
#opensource
Title
# opensource
m

Michal Klimczak

02/01/2021, 11:59 AM
I'm trying to add lib from bintray to jcenter, but keep getting an error message
Copy code
Failed to send a message: Path is already exist in JCenter.
POM project file is not valid.
It's a Kotlin multiplatform project and it resolves just fine from a
dl.bintray
url, but somehow doesn;t work for jcenter. If I uncheck "Is POM project" I only get "Path is already exist...". Any ideas what might be wrong with my repo? It's here: https://bintray.com/futuremind/koru
m

mbonnin

02/01/2021, 12:03 PM
This might be because jcenter mirrored your project. Was it on mavenCentral before?
Or rather it might be conflicting with https://bintray.com/mklimczak/maven/recycler-fast-scroll since they're using the same prefix "com.futuremind.*"
I'm never 100% sure what the rules are. Maybe try to publish with
com.futuremind.koru
?
m

Michal Klimczak

02/01/2021, 12:16 PM
it's not been on maven central. it must be the second reason. I did publish it on my account and now I'm publishing under futuremind...
by
com.futuremind.koru
you mean the directory structure?
m

mbonnin

02/01/2021, 12:17 PM
For groupId
m

Michal Klimczak

02/01/2021, 12:19 PM
okay, I get it. need to think where they should all go and possibly move things around... thank you very much!
m

mbonnin

02/01/2021, 12:19 PM
Maybe bintray "blocks" all prefixes as soon as someone "allocates" a groupId. E.g. if someone takes
com.mycompany.awesomelib
, that would prevent anyone else to publish to
com.mycompany
. That would somehow make sense.
Maybe publishing to
com.mycompany.someotherlib
with user2 would work or maybe the original
com.mycompany
prefix and everything under is now reserved for user1
In which case, you'll have to somehow transfer ownership of
com.futuremind
to user2 (or add user2 to the user1 organization maybe?)
Ultimately, you might have to contact their support, they're usually quite responsive for these kind of things
(PS: mavenCentral is another option that has faster upload speeds and better guarantees for users as it doesn't allow changing published libs)
👌 1
m

Michal Klimczak

02/01/2021, 12:29 PM
I will start with contacting the support and see where it gets me 🙂
👍 1
6 Views