title: How to install Maven artifact with sources from command line?
body: <p>How to install Maven artifact with sources?</p>
  
  <p>so later I don't need to open a project in eclipse to see some code.</p>
  
  <p><strong>EDIT:</strong>
  I do know I can add to pom.xml this code</p>
  
  <pre><code>&lt;plugin&gt;
          &lt;artifactId&gt;maven-source-plugin&lt;/artifactId&gt;
          &lt;executions&gt;
                  &lt;execution&gt;
                          &lt;id&gt;attach-sources&lt;/id&gt;
                          &lt;phase&gt;verify&lt;/phase&gt;
                          &lt;goals&gt;
                                  &lt;goal&gt;jar&lt;/goal&gt;
                          &lt;/goals&gt;
                  &lt;/execution&gt;
          &lt;/executions&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>but I would like to do it from command line(to make it more universal).</p>