On Sep 10, 2013, at 3:31 PM, Darin Perusich <[email protected]> wrote:
> I want to build puppetdb.jar from source. I did "echo 1.4.0 > version" > and ran "lein uberjar" which results in target/puppetdb-1.4.0.jar and > target/puppetdb-1.4.0-standalone.jar. what's the different between the > two jars? I'll assume the standalone is what I'd need to run the > service. The standalone jar is, well, standalone. :) All the dependencies it needs are contained within it, so you should be able to run it via "java -jar puppetdb-1.4.0-standalone.jar services -h" on any system you copy that jar to. The non-standalone jar contains just the puppetdb code, not any of the libs it depends on. So it's not that useful as a final artifact of the build process. > > The back story...I'm trying to build and package up puppetdb from > source to make it available in the Open Suse Build service, > systemsmanagement:puppet repo, and eventually/hopefully push into the > distro itself. The issue is we really really don't like packaging up > binary blobs, which is how puppetdb is distributed, and the build > nodes cannot download/install jar's from outside sources and so I > trying to work around this by distributing all puppetdb's build > dependencies with the source. I may be able to get approval for > distributing the blob, it's pending, I'm trying to work around it. > > Thanks! > -- > Later, > Darin > > > On Tue, Sep 10, 2013 at 4:49 PM, Chris Price <[email protected]> wrote: >> Hi Darin, >> >> That's... not ideal. Sorry. >> >> We don't usually build it that way, though. What, specifically, are you >> trying to build? Just the jar file? If so, what you really want to do is >> run `lein uberjar`. It looks like there's a small glitch around how we name >> that file, though. The easiest workaround is to create a file called >> 'version' in the same directory, and then run `lein uberjar`. This should >> result in the creation of a file `target/puppetdb-1.4.0-standalone.jar`. >> >> If you need to build other pieces, let us know what and we may able to help >> further. >> >> Thanks! >> Chris >> >> >> On Tue, Sep 10, 2013 at 12:34 PM, Darin Perusich <[email protected]> wrote: >>> >>> Hello All, >>> >>> I've download puppetdb 1.4.0 tagged code from github, >>> https://github.com/puppetlabs/puppetdb/archive/1.4.0.zip, and when I >>> attempt to build from source things appear to compile successfully but >>> aborts with "No such file or directory - >>> target/puppetdb--standalone.jar" Does anyone have any idea what's >>> causing this? >>> >>> lein --version >>> Leiningen 2.3.2 on Java 1.6.0_43 Java HotSpot(TM) 64-Bit Server VM >>> >>> /tmp/puppetdb-1.4.0> rake >>> rm -rf ext/files pkg >>> rm -rf >>> lein uberjar >>> Created /tmp/puppetdb-1.4.0/target/puppetdb-0.0-dev-build.jar >>> Created /tmp/puppetdb-1.4.0/target/puppetdb-0.0-dev-build-standalone.jar >>> mv target/puppetdb--standalone.jar puppetdb.jar >>> rake aborted! >>> No such file or directory - target/puppetdb--standalone.jar >>> >>> Tasks: TOP => uberjar >>> (See full trace by running task with --trace) >>> >>> -- >>> Later, >>> Darin >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "Puppet Developers" group. >>> To unsubscribe from this group and stop receiving emails from it, send an >>> email to [email protected]. >>> To post to this group, send email to [email protected]. >>> Visit this group at http://groups.google.com/group/puppet-dev. >>> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Puppet Developers" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To post to this group, send email to [email protected]. >> Visit this group at http://groups.google.com/group/puppet-dev. >> For more options, visit https://groups.google.com/groups/opt_out. > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/puppet-dev. > For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-dev. For more options, visit https://groups.google.com/groups/opt_out.
