I have created a Maven archetype from an existing project. I have even installed the archetype in my local repository and used it to create a new project. Everything went perfect (incredible).
The thing is that I want to distribute this archetype so anybody can install it in his local machine or even deploy to a maven repo in order to use it. I was thinking about distributing the generated the artifact JAR, not the source of my project, and let people install it but it seems like it doesn't install as an archetype or at least it isn't recognized when I try to use it.
I used mvn install:install-file goal to do this.
Is this the best way to do this? Is it posible to distribute this JAR file in order to install it as an archetype? Is the JAR file missing something?
Thanks in advance.
mvn deploy
doesn't work...? – Mablemabry