有人有一個「proguard-maven-plugin」標準maven配置,可以用於企業Java應用程序嗎?有人知道我需要添加4個pom.xml文件配置?我花了很多時間試圖使用它,但始終是行家寫:嘗試使用maven運行時出現Proguard錯誤
未能執行目標com.pyx4me:項目MavenEnterpriseApp proguard的(默認):proguard的-Maven的插件:2.0.4 org.apache.maven.lifecycle.LifecycleExecutionException:無法執行目標com.pyx4me:proguard-maven-plugin:2.0.4:proguard(默認)on項目MavenEnterpriseApp-web:混淆失敗(結果= 1) at org.apache.mav en.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal。在org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder。 java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMav中的org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) en.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) 在org.apache.maven.cli.MavenCli.main(MavenCli.java:141) 在sun.reflect.NativeMethodAccessorImpl.invoke0(本機方法) 在sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 在sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher .java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.co dehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) 引起:org.apache.maven。 plugin.MojoExecutionException:模糊失敗(result = 1) at com.pyx4me.maven.proguard.ProGuardMojo.proguardMain(ProGuardMojo.java:633) at com.pyx4me.maven.proguard.ProGuardMojo.execute(ProGuardMojo.java:486 ) 在org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) 在org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
的我嘗試的proguard配置:
<plugin>
<groupId>com.pyx4me</groupId>
<artifactId>proguard-maven-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>proguard</goal>
</goals>
</execution>
</executions>
<configuration>
<inFilter>com.codeInMine.business*</inFilter>
</configuration>
</plugin>
我也是這樣。沒有任何東西說「maven」就像神祕解決方案中的神祕失敗。 – 2016-06-22 21:13:32