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
When I tried this it's giving the below error
Is there any way to do this?


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.