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.

原文链接:Host maven artifact in Github Repository

© 版权声明
THE END
喜欢就支持一下吧
点赞13 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容