title: ProGuard + Maven with Java 7
body: <p>I'm trying to make ProGuard part of our Maven build process. The problem is that the official Maven plugin is using ProGuard 4.3, which doesn't support Java 7. Is there any easy way to make the plugin use Proguard 4.8 instead?</p>
  
  <p>I've tried specifying the dependency for the plugin but ProGuard seems to have a new structure for Maven-modules (proguard-base, proguard-parent etc) so the plugin can't use any version >4.4. Here's how my current pom looks:</p>
  
  <pre><code> &lt;plugin&gt;
                  &lt;groupId&gt;com.pyx4me&lt;/groupId&gt;
                  &lt;artifactId&gt;proguard-maven-plugin&lt;/artifactId&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;4.8&lt;/proguardVersion&gt;
                      &lt;obfuscate&gt;true&lt;/obfuscate&gt;
                      &lt;options&gt;
                          &lt;option&gt;-allowaccessmodification&lt;/option&gt;
                          &lt;option&gt;-keep public class com.degoo.ui.ClientBackendStarter { public *; public static *; }&lt;/option&gt;
                      &lt;/options&gt;
                      &lt;injar&gt;${project.build.finalName}.jar&lt;/injar&gt;
                      &lt;outjar&gt;${project.build.finalName}-small.jar&lt;/outjar&gt;
                      &lt;outputDirectory&gt;${project.build.directory}&lt;/outputDirectory&gt;
                      &lt;libs&gt;
                          &lt;lib&gt;${java.home}/lib/rt.jar&lt;/lib&gt;
                          &lt;lib&gt;${java.home}/lib/jsse.jar&lt;/lib&gt;
                      &lt;/libs&gt;
                      &lt;addMavenDescriptor&gt;false&lt;/addMavenDescriptor&gt;
                  &lt;/configuration&gt;
                  &lt;dependencies&gt;
                      &lt;dependency&gt;
                          &lt;groupId&gt;net.sf.proguard&lt;/groupId&gt;
                          &lt;artifactId&gt;proguard&lt;/artifactId&gt;
                          &lt;version&gt;4.8&lt;/version&gt;
                          &lt;scope&gt;runtime&lt;/scope&gt;
                      &lt;/dependency&gt;
                  &lt;/dependencies&gt;
              &lt;/plugin&gt;
  </code></pre>
  
  <p>Any suggestions?</p>