SBT的Proguard插件不起作用?

时间:2013-04-10 23:52:49

标签: scala plugins sbt proguard

[info]  [SUCCESSFUL ] org.scala-sbt#xsbt-proguard-plugin;0.1.3!xsbt-proguard-plugin.jar (425ms)
[info] downloading http://repo1.maven.org/maven2/net/sf/proguard/proguard-base/4.8/proguard-base-4.8.jar ...
[info]  [SUCCESSFUL ] net.sf.proguard#proguard-base;4.8!proguard-base.jar (1346ms)
[info] Done updating.

添加

后我收到了这些消息
resolvers += Resolver.url("sbt-plugin-releases-scalasbt", url("http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/"))(Resolver.ivyStylePatterns)

addSbtPlugin("org.scala-sbt" % "xsbt-proguard-plugin" % "0.1.3")

到我的.sbt/plugins/build.sbt文件,这让我觉得proguard和它的库安装得很好。但是,尝试使用proguard或检查min-jar-path只会给我一个错误

[error] Not a valid command: proguard (similar: reload)

[error] Not a valid key: min-jar-path (similar: ivy-paths)

我也试过把同样的东西放进(proj-directory)/project/build.sbt但仍然没有运气。还尝试将其放在~/.sbt/plugins/plugins.sbt并获得相同的结果。如果我在SBT提示符下尝试about它会告诉我

[info] Available Plugins: ProguardPlugin

然而我似乎根本无法运行它。我做错了什么?

1 个答案:

答案 0 :(得分:1)