DEV Community

Cover image for Host maven artifact in Github Repository
Tirthankar Kundu
Tirthankar Kundu

Posted on

1

Host maven artifact in Github Repository

We often have some jar files or artifacts that needs to be imported via maven command.

Sometimes few artifacts are not available in maven repository and we need to install them manually to our maven .m2 folder. This is tedious job and every developer working on your project has to do the same.

So hosting your own maven repository comes useful and is available to every developer working on your project.

Hence I have created a bash tool to do the same.

Steps:

  • Create a empty GitHub repo.
  • Download the script "artifact_publisher.sh" from here
  • Open a terminal and use command chmod +x to make it executable and then run the script by simple typing ./artifact_publisher.sh Enter the details as prompted.
  • Once you do these steps, you will get a maven hosted repository URL which you need to use in your maven projects to download these artifacts.

Let me know if you found this useful ! Also feel free to add more stuffs and raise a PR.

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs