title: proguard-maven-plugin java 8
body: <p>I am trying to use Proguard to obfuscate my Java 8 App.</p>
  
  <p>Proguard supports Java 8 since version 5.0</p>
  
  <p>For some reason the program-maven-plugin ignores my configuration to use Proguard version 5.1 and uses 4.3, incompatible with Java 8.</p>
  
  <p>My configuration is</p>
  
  <pre><code>&lt;plugin&gt;
          &lt;groupId&gt;com.pyx4me&lt;/groupId&gt;
          &lt;artifactId&gt;proguard-maven-plugin&lt;/artifactId&gt;
      &lt;version&gt;2.0.4&lt;/version&gt;
          &lt;executions&gt;
              &lt;execution&gt;
                  &lt;phase&gt;package&lt;/phase&gt;
                  &lt;goals&gt;
                      &lt;goal&gt;proguard&lt;/goal&gt;
                  &lt;/goals&gt;
              &lt;/execution&gt;
          &lt;/executions&gt;
          &lt;configuration&gt;
      &lt;proguardVersion&gt;5.1&lt;/proguardVersion&gt;
      &lt;obfuscate&gt;true&lt;/obfuscate&gt;
              &lt;options&gt;
                  &lt;option&gt;-allowaccessmodification&lt;/option&gt;
                  &lt;option&gt;-keep class mypackage.Testt&lt;/option&gt;
              &lt;/options&gt;
              &lt;libs&gt;
                  &lt;lib&gt;${java.home}/lib/rt.jar&lt;/lib&gt;
          &lt;lib&gt;${java.home}/lib/javafx-mx.jar&lt;/lib&gt;
              &lt;/libs&gt;
          &lt;/configuration&gt;
          &lt;dependencies&gt;
            &lt;dependency&gt;
              &lt;groupId&gt;net.sf.proguard&lt;/groupId&gt;
              &lt;artifactId&gt;proguard-base&lt;/artifactId&gt;
              &lt;version&gt;5.1&lt;/version&gt;
              &lt;scope&gt;runtime&lt;/scope&gt;
            &lt;/dependency&gt;
          &lt;/dependencies&gt;
    &lt;/plugin&gt;
  </code></pre>
  
  <p>Any clue?</p>
  
  <p>Tks,</p>