title: Migration Jave 11 _ How to resolve : java.lang.ClassNotFoundException: javax.activation.MimeTypeParseException
body: <p>I'm migrating my java project from <strong>8</strong> to <strong>11</strong> version.</p>
  
  <p>As <strong>javax.activation</strong> has been removed from JDK 11, so I added it to Maven pom.xml file :</p>
  
  <pre><code>&lt;dependency&gt;
    &lt;groupId&gt;javax.activation&lt;/groupId&gt;
    &lt;artifactId&gt;activation&lt;/artifactId&gt;
    &lt;version&gt;1.1.1&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>The dependency is listed in "Externat librairies" but every time I run "mvn clean install" to build my project, I get this error :</p>
  
  <pre><code>...
  Caused by: java.lang.ClassNotFoundException: javax.activation.MimeTypeParseException
  at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
  at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271)
  at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247)
  at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239)
  ... 51 more
  </code></pre>
  
  <p>Have you any idea please ?
  Thanks</p>