How to upload the artifacts to maven?

Currently, I am uploading artifacts to the google cloud platform and amazon s3. Now I want to upload the artifact to maven and I am new here so no idea how to do it. Please suggest some solution.

Hi there,
If you use Gradle then this guide might help you: Continuous deployment for Android libraries to Maven Central with Gradle | CircleCI

The article focuses on Android projects but it should also work for JVM projects.
If you use a different build tool than Gradle you probably need a different plugin but the authentication etc will still work similarly.