How to install Maven archetype from local JAR and POM, and also update local catalog
<p>I want to distribute a custom archetype JAR and POM, without deploying them to a Maven repository, so that someone can grab them and install in their local repository with something like a <code>mvn install:install-file -Dfile &lt;file&gt; -DpomFile &lt;pom&gt;</code>.</p>
<p>But if one just does:</p>
<blockquote>
<p>mvn install:install-file -Dfile=./my-archetype-1.0.jar -DpomFile=./my-archetype-1.0.pom</p>
</blockquote>
<p>the local catalog doesn't get updated.</p>
<p>Though there are similar questions like <a href="https://stackoverflow.com/questions/13089419/install-maven-archetype">this</a>, <a href="https://stackoverflow.com/questions/14406652/install-maven-archetype-project-jar-with-pom-file-to-local-repo">this</a>  and <a href="https://stackoverflow.com/questions/13499873/how-to-use-my-custom-archetype-with-maven">this</a>, they left me missing a small step.</p>
<p>I'm not sure how to run the <code>mvn archetype:update-local-catalog</code> that they mention.   Where's the <strong>pom.xml</strong>?</p>