I am trying to sync my library with Maven Central, but I get this error:
What should I do? Please give step by step instructions . I know that you want to create files and pom.xml setting.xml , but shde create them and what plainy need to connect ?
Your package should be complaint with all the Maven Central requirements, while in your case your packages aren't signed and (as the bottom of the screenshot shows) have POM files that don't meet the requirements. While Bintray can't help you with your POM files, it can sign the files you upload for you.
If you have specific questions about other failures (after you figured out the signing), feel free to post additional questions with the failure log.
Related
I want to create a package of my android dependency - https://github.com/dev-aniketj
What kind of steps I have to perform to create my own package??
I already research on it and my project is based on android, so have make maven package, but don't how to create it.
Please Help me !!!
I am trying to add a Flutter module to my Android project.
For that, I follow the relevant flutter docs, and everything seemingly works fine.
However, when I run a Gradle sync after following all the steps in above link, the sync returns the following warnings
Failed to resolve: io.flutter:flutter_embedding_debug:1.0.0-57d3bac3dd5cb5b0e464ab70e7bc8a0d8cf083ab
Failed to resolve: io.flutter:armeabi_v7a_debug:1.0.0-57d3bac3dd5cb5b0e464ab70e7bc8a0d8cf083ab
Failed to resolve: io.flutter:arm64_v8a_debug:1.0.0-57d3bac3dd5cb5b0e464ab70e7bc8a0d8cf083ab
Failed to resolve: io.flutter:x86_64_debug:1.0.0-57d3bac3dd5cb5b0e464ab70e7bc8a0d8cf083ab
Failed to resolve: io.flutter:x86_debug:1.0.0-57d3bac3dd5cb5b0e464ab70e7bc8a0d8cf083ab
It seems it cannot find some needed packages in any of the repositories I have specified.
And indeed, I cannot use
import io.flutter.embedding.android.FlutterFragment;
from my Android Java code.
What repository do I have to specify to make sure the needed packages are found?
Solution
I looked through a bunch of questions here on StackOverflow, but nothing seems to really match the problem I ran into.
The closest would be this question, but its answer did not quite work in my case.
Instead I stumbled upon this blog post, where it is recommended to add the following repository:
repositories {
...
maven { url "https://storage.googleapis.com/download.flutter.io" }
}
In my case, I added the repository to settings.gradle in the host Android project (not in the one generated by Flutter). Where you add the repository may vary in your case, and I am not 100% confident that this is the best place.
However, this indeed fixes the problem for me. The packages are found, and I can use the Flutter module as expected.
Details
The repository mentioned in the SO question I mentioned above is accessed via http which may be an issue for some.
Accessing it with https give the following in Firefox:
Websites prove their identity via certificates.
Firefox does not trust this site because it uses a certificate that is not valid for download.flutter.io.
The certificate is only valid for the following names:
*.storage.googleapis.com, *.googleapis.com, commondatastorage.googleapis.com,
*.commondatastorage.googleapis.com, storage.googleapis.com, storage.mtls.googleapis.com,
*.appspot.com.storage.googleapis.com, *.content-storage.googleapis.com,
*.content-storage-p2.googleapis.com, *.content-storage-upload.googleapis.com,
*.content-storage-download.googleapis.com, *.storage-upload.googleapis.com,
*.storage-download.googleapis.com
This indicates to me that https://storage.googleapis.com/download.flutter.io is the correct URL to use for the Maven repository.
I am newbie to publishing library to Jcenter.
I have successfully created a library, uploaded it to bintray(v1.0) and linked it to Jcenter by following this
Now I did some improvement changes to my source code and wanted that to be the default version 1.0, so I logged into my bintray account and deleted version 1.0( which is linked to jcenter). Now when I pushed my library to bintray it forced me to upgrade my version, which I did(v 1.1) and it sucessfully got uploaded to bintray. Now I wanted to publish this to jcenter so I tried to linked it to jcenter but I got the following message from bintray team
Hi,
The package you requested to include already exists in JCenter:
http://jcenter.bintray.com/com/worldline/in/worldlineipg/1.0/
The simplest thing would be to go to the package page and make an
ownership request, which will keep it linked to JCenter from your own
repository.
Before you make the ownership request please make sure you remove
existing versions of the package from your repo in order to prevent
conflicts. This way the ownership request can go through successfully.
After the ownership request has been approved, you may deploy modules
directly into your package.
Kind Regards, JFrog Support
But at bintray's homepage I see 0 packages linked to Jcenter
I can see both the version at bintray but Jcenter have only v1.0 published there.
So I need little help in understanding
How can I make v 1.1 as the deafult 1.0 and delete the current 1.0?
If that's not possible then how do I push my v1.1 to Jcenter ?
With regards to the issue you are experiencing, it seems that the package 'worldlineipg' is not owned by you, and the owner of the package is "Bintray". You can verify it here.
In addition, you can see that the package in your personal Bintray repository is not linked to JCenter. (See below screenshot)
This scenario, which "Bintray" user takes the ownership of the package, usually happens if the user deletes the package / rename the package after it is linked to JCenter.
Since JCenter is an OSS repository and other people might use the files in it, we do not allow deleting packages from it. The scenario which "Bintray" user takes the ownership of the package promise that there will be no content loss.
In order to regain ownership of the package, go to the package page and make an ownership request. (Click on the "I'm the creator" button).
Before doing the above, please make sure to remove any packages with the same name or path prefix from your personal account. In this case, since you have a new version which is not in JCenter, you will have to add it manually again after you will re-gain ownership of the package.
We hope this clarifies.
Please let us know if you have any follow up questions regarding this.
Best Regards,
Yonatan Brand
I pushed an .aar artifact to Jcenter repository through bintray and gradle. I followed this tutorial step by step, the only thing I did different was I didn't give the correct Github repository link because the git repository is private. Now I am stuck at step 16. After I pushed my artifact file. I tried to follow the step 16 however that option isn't working in Bintray website. I tried to access my artifact as a dependency in another project but gradle can't find it and gives "Failed to resolve com.wingoku.tickers:1.0.0". What am I doing wrong?
Best Regards
EDIT:
I clicked on Add To JCenter last night and clicked the checkbox and provided my Groupid and it said "Message sent to bintray". Still When I click on Add to jcenter it asks me the same thing. And I still can't follow step 16 because MavenControl is still no clickable.
Your request for inclusion to JCenter is still pending or was rejected. My best guess will be that's because you don't have correct GitHub repository link. The free service in Bintray is for OSS projects only and providing the source control link is a mandatory requirement.
I have a question that I want to make an apklib file for an facebook sdk. But I don't know how to create that but I need to use Facebook Sdk via Maven Repository, how this can be achieved? Please help me out about this problem.
If you are familiar with Maven and want to use it, maven-android-plugin has a sample project you can start with, check out LibraryProjects at here, you need download the 2.9.0-beta one.