我們使用play 2.2.3開發了一個Web應用程序,並且想要對其進行混淆。我正在嘗試使用sbt-proguard插件。我把線下到PROJECT_FOLDER /項目/ plugins.sbt文件sbt-proguard with play 2.2.3
addSbtPlugin("com.typesafe.sbt" % "sbt-proguard" % "0.2.2")
,並把該線下方PROJECT_FOLDER/build.sbt文件
proguardSettings
ProguardKeys.options in Proguard ++= Seq("-dontnote", "-dontwarn", "-ignorewarnings")
ProguardKeys.options in Proguard += ProguardOptions.keepMain("Application")
inConfig(Proguard)(javaOptions in ProguardKeys.proguard := Seq("-Xmx2g"))
我不知道proguard的是當我說dist在播放控制檯和插件網站上工作時,他們說打電話proguard:proguard。當我寫的ProGuard:玩控制檯上的ProGuard,播放給了我錯誤下面
[info] Reading program jar [/Users/kamil/DEVELOPMENT/play-2.2.3/repository/local/net.sf.ehcache/ehcache-core/2.6.6/jars/ehcache-core.jar] (filtered)
[info] Reading program jar [/Users/kamil/DEVELOPMENT/play-2.2.3/repository/cache/org.json/json/jars/json-20140107.jar] (filtered)
[info] Reading library jar [/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/jre/lib/jce.jar]
[info] Reading library jar [/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/jre/lib/rt.jar]
[error] Error: The output jar is empty. Did you specify the proper '-keep' options?
[trace] Stack trace suppressed: run last proguard:proguard for the full output.
[error] (proguard:proguard) Proguard failed with exit code [1]
[error] Total time: 35 s, completed 10.Tem.2014 09:45:23
顯示是否有使用這個插件與遊戲框架成功地人?