buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Maas <pfmm...@gmail.com>
Subject multple artifacts as project output & installing to maven repo
Date Mon, 31 May 2010 08:59:12 GMT
Guys,

we'd like to be able to install multiple artifacts resulting from a single
project build. Say we have something like:


desc "My incredible project"
define "services" do

  project.version = 0.0.1
  project.group = GROUP
  manifest["Implementation-Vendor"] = COPYRIGHT

  define "myservice" do
    compile.with CLASSPATH
    compile.with "shared:shared-api:jar:0.0.1"
    compile.with "shared:shared-persistence:jar:0.0.1"
    resources
    package(:jar)
    package(:jar, :file => "#{path_to(:target)}/#{project.name.gsub(/:/,
'-')}-client-#{project.version}.jar") # will only contain client code
  end
end


We nicely get two jars:

target/services-myservice-0.0.1.jar
target/services-myservice-client-0.0.1.jar


But running buildr install will only install the firrst jar, but not the
second. Is this something I could configure or script? Any ideas?

kind regards,

Peter

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message