title: Creating a Maven Artifact from (Eclipse) Project, and Generating New Project from it
body: <p>I have an Maven (eclipse) Project, which i want to convert to an Maven Artifact - so that others can generate new Project from it.</p>
  
  <p><strong>To create Artifact i did:</strong><br>
  cd to my proj dir where pom.xml exists<br></p>
  
  <pre><code>mvn install
  </code></pre>
  
  <p>After this i can see that<br>
  .m2\repository has my project added.<br>
  <strong>But</strong> &lt;user_home&gt;\.m2\archetype-catalog.xml - did not have the archetype added.<br>
  So, i added manually as follows:</p>
  
  <pre><code>&lt;archetype&gt;
        &lt;groupId&gt;com.whatever&lt;/groupId&gt;
        &lt;artifactId&gt;myapp&lt;/artifactId&gt;
        &lt;version&gt;1.0.0-BUILD-SNAPSHOT&lt;/version&gt;
        &lt;repository&gt;&lt;/repository&gt;
  &lt;/archetype&gt;
  </code></pre>
  
  <p>Now, i am not sure what to give in  tag, as this is a local repository.</p>
  
  <p>But, i am unable to generate a new project using:<br></p>
  
  <pre><code>mvn archetype:generate -DarchetypeCatalog=local
  </code></pre>
  
  <p>It asks me to choose the archetype, but after that i get error:</p>
  
  <p>[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2
  .2:generate (default-cli) on project standalone-pom: The desired archetype does
  not exist (com.whatever:myapp:1.0.0-BUILD-SNAPSHOT) -> [Help 1]</p>
  
  <p><em>What step am i missing?</em></p>