> For the complete documentation index, see [llms.txt](https://ed.sunbird.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ed.sunbird.org/use/source-code/cloud-store-sdk-maven-deployment-guide.md).

# Cloud-Store SDK Maven Deployment Guide

This guide provides a step-by-step process for deploying a dependency to Maven Central Repository via OSS Sonatype.

#### Prerequisites

* Ensure you have the `cloud-store-sdk-maven` project directory, containing the necessary `settings.xml` and `sunbird.asc` files.

#### Steps to Push a Dependency to a Maven Repository

1. **Access the Repository:**
   * Open your web browser and navigate to OSS Sonatype.
2. **Login:**
   * Use the username and password from the `cloud-store-sdk-maven/settings.xml` file.
3. **Generate a User Token:**
   * After logging in, go to your profile.
   * From the profile drop-down menu, select **User Token**.
   * Click on **Access User Token** to generate a new username and token.
4. **Update Maven Settings:**
   * Add the newly generated username and token to your `settings.xml` file.
   * Copy the updated `settings.xml` file to your `.m2` folder.
5. **Deploy the Dependency:**
   * Navigate to the directory `cloud-store-sdk_2.12`.
   * If you encounter GPG key errors, run: `mvn deploy -DskipTests`
   * *Note:* If you encounter GPG key errors, ensure that your GPG keys are valid or adjust your deployment command as needed.
6. **Verify Deployment:**
   * Open your browser and navigate to the Staging Repositories page to confirm your dependency has been pushed to the staging repository.
7. **Release the Dependency:**
   * Once confirmed, click the **Release** button to promote the dependency from the Staging Repository to Maven Central.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://ed.sunbird.org/use/source-code/cloud-store-sdk-maven-deployment-guide.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
