Can we use github repository as an artifact while creating maven project?

526 Views Asked by At

I've implemented a maven library and published it to GitHub. Now I wanted to use this repository as an archetype to create another maven project (without maven central repo) like below

enter image description here

When I tried this it's giving the below error

enter image description here

Is there any way to do this?

1

There are 1 best solutions below

3
emeraldjava On

You'll need to have a git repo which defines 'archetype' project and then package and install it's generated artifact into the github hosted artifact repository.

See this maven guide to define the archrtype

And use github actions to publish the artifact.