title: JavaMail API from Maven
body: <p>I am trying to upgrade to latest Java Mail utility. </p>
  
  <p>From</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;javax.mail&lt;/groupId&gt;
      &lt;artifactId&gt;mail&lt;/artifactId&gt;
      &lt;version&gt;1.4.7&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>to (my Intention)</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;javax.mail&lt;/groupId&gt;
      &lt;artifactId&gt;mail&lt;/artifactId&gt;
      &lt;version&gt;1.5.1&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>But I don't find 1.5.1 for mail artifact, </p>
  
  <p>but I can see </p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;com.sun.mail&lt;/groupId&gt;
      &lt;artifactId&gt;javax.mail&lt;/artifactId&gt;
      &lt;version&gt;1.5.1&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>My Question is why group id changed and if I change the group id for 1.5.1 do I need to change all my mail implementation that is already present (package name change and any other stuff) and what is the difference between <code>com.sun.mail</code> vs <code>javax.mail</code>?</p>