[Publish AAR to maven] Register maven warehouse sonatype.org account

Source: Internet
Author: User
Tags domain name registration sonatype

This article is part of the publication of AAR to Maven warehouse using Gradle

========================================================
Qiujuer
Blog: Blog.csdn.net/qiujuer
Website: www.qiujuer.net
Open Source Library: github.com/qiujuer/genius-android
Reprint Please specify source: http://blog.csdn.net/qiujuer/article/details/44195199
--open source of learning, for open source, beginner's mentality, with June mutual encouragement!

========================================================

This article will briefly explain how to register for a https://issues.sonatype.org account. What is the role of the account? When you register for this account you have a remote open source warehouse, please note that the things you upload to the warehouse will not be private, so the private things do not upload. At the same time you can manage your unique project ID through this account, you can release the maintenance version through this ID, the same can be used by others to get the version you published by the appropriate configuration.

Registered
  1. The first step you need to complete is to enter the website: https://issues.sonatype.org/
  2. Click Login in the upper-right corner, if not on the landing page you can click Sign up to enter the registration page.
  3. In the registration page, you need to add the following information. Is the full name, mailbox (this mailbox must be real, follow-up will be verified, and receive your warehouse some operation information), user name, password, confirm password, verification code.
  4. Login after successful registration. Then click "Create" in the navigation bar. Don't tell me you didn't see it? A button with a completely different style. You will then see the following screen.
  5. In the Create page, Project project is selected according to my choice, which is the type dedicated to publishing open source libraries; Issue Type This click to select New Project. As for the following Summary is your name, it is best to take the same name as your GitHub project, the following Description description information is optional, but I suggest you fill in some simple introduction, you can also direct the introduction of your open source project to move over.

    Here you may see a place: The bottom is also a Attachment (attachment), although this is optional, but if you apply for the Group Id is your domain name then you need to pass in your domain name all certificates, It can be either a picture or a PDF. If there is no upload then you will be asked to fill it, but you are not registering your domain ID so there is no need to upload anything.

  6. Let's scroll down and continue filling in.

  7. Group ID: What you need is to fill in the ID of the individual item you want to apply for, what is this ID? Here I show you a code:
  8. //Adding  To  your project  "Build.gradle"  file 
     dependencies {compile  ' com.github.qiujuer:genius:2.4.0 ' }  

    Can see the following: "Com.github.qiujuer" is the ID part; The ID requirement is unique, generally the ID generated using your GitHub address is basically a unique ID number. or your personal domain name, too. How does the
    build? In general, your GitHub address or your domain name can be generated, but you need to adjust the location, in general, there are several situations:

    • www.springframework.org-Org.spri Ngframework
    • oness.sf.net, net.sf.oness
    • qiujuer.net, Net.qiujuer
    • www.qiujuer.net Net.qiujuer
    • genius.qiujuer.net, Net.qiujuer.genius
    • Github.com/qiujuer, COM.GITHUB.Q Iujuer
    • git.oschina.net/qiujuer-net.oschina.git.qiujuer
  9. Generally speaking, if you have www in your URL you need to get rid of the domain name address, if it is GitHub or Gitosc then need to be accurate to your personal directory, but not accurate to your project, that is to say:

    • Github.com/qiujuer/genius-android-Com.github.qiujuer
  10. Why don't you have to be precise about the project? Because there is a certain inheritance in the Group Id, if you apply for com.github.youname then you will automatically have com.github.youname.youproject administrative rights.
    here, if your application ID is your domain name conversion, then please upload your domain name registration certificate, if it is open source such as Gitosc and GitHub then do not need this.

  11. Next we go on, the latter part of the basic can be directly filled out, nothing more than to fill in your open source project address those, the following choice is also the same as mine OK.

    Where there is a Username (s) place, here generally fill in your registration Username OK, if you like this Id can be more personal management, have upload permissions then you can add someone else's Id, separated by commas is OK.

  12. Finally click on the Create button and you will enter the application.

    Here you must not say that it is done, this is only the application, the back also need to undergo audit-error correction (this part of the general formal fill will not be corrected, if there is an error you will receive the manager to you the message)-go to the ready-to publish your library or other open source things-audit pass-close the issue.

  13. In general, the administrator edits to error correction time is generally 1-2 days, depends on your luck, it is possible that you have just applied for the results of an hour later entered the state of readiness. If you have some errors then you can comment on the article I will give you a solution, after all, I met a lot of problems the first time.

  14. If the audit passes, error correction is completed then you will receive the following information.

    • Your configuration is complete and you are ready to go to work.
    • The address of the upload snapshot version is ....
    • The address for uploading the release version is ...
    • The staging library is used to prepare for the publication.
    • The download snapshot and the address of the release version are ...
    • The address of the download snapshot, publication, and staging library is ...
    • In addition, when you first upload to the library, please say here you have uploaded (only the first time, no need, the first time he will have some configuration)
Precautions
    1. Group Id section, be sure to follow the rules of the application to avoid the subsequent correction slowly change those.
    2. If you do not have a domain name or you have a domain name without a management certificate then you use GitHub or Gitosc address to apply, so that no other attachments, but also good application;
    3. Be sure to keep your username and password in mind, and use it later.
    4. The snapshot version is where you publish your tests, and you can publish the same version to that directory multiple times.
    5. A version of a release can only be published once, unless you fail to submit it for this release.
    6. Both the snapshot version and the release version can be accessed through gradle, except that the snapshot version of the access needs to add a warehouse address, which is explained in the main article.
    7. For the same version, such as 1.0.0, your snapshot has been released 10, then you will see 10 snapshot version files, but as soon as you release the "release" version, your snapshot files will be emptied, if you do not publish "release" version then there will be no empty.

Here is my address, you can see, see what you can gain:
https://oss.sonatype.org/content/groups/public/com/github/qiujuer/

Other

This article completed, behind it is still a lot, but once the energy is limited, I will slowly elaborated, strive to speak clearly. For example, the snapshot version of the view and so on, the release process is waiting, it is not so easy to publish, when you upload to the warehouse, you need to confirm, publish, close and so on.

For more exciting places please go back to the main article.

========================================================
Qiujuer
Blog: Blog.csdn.net/qiujuer
Website: www.qiujuer.net
Open Source Library: github.com/qiujuer/genius-android
Reprint Please specify source: http://blog.csdn.net/qiujuer/article/details/44195199
--open source of learning, for open source, beginner's mentality, with June mutual encouragement!

========================================================

[Publish AAR to maven] Register maven warehouse sonatype.org account

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.