【发布时间】:2009-08-14 18:30:32
【问题描述】:
我有一个使用 buildr 构建的 java 项目,并且有一些外部依赖项:
repositories.remote << "http://www.ibiblio.org/maven2"
repositories.remote << "http://packages.example/"
define "myproject" do
compile.options.target = '1.5'
project.version = "1.0.0"
compile.with 'dependency:dependency-xy:jar:1.2.3'
compile.with 'dependency2:dependency2:jar:4.5.6'
package(:jar)
end
我希望它构建一个包含所有这些依赖项的独立 jar 文件。
我该怎么做?
(有一个合乎逻辑的后续问题:How can I strip all the unused code from the included dependencies and only package the classes I actually use?)
【问题讨论】:
标签: java maven-2 jar packaging buildr