> I'm attempting to build puppetdb-2.0.0 from source and the resulting > jar fails to start and errors with "Could not find or load main class > com.puppetlabs.puppetdb.core".
The way we execute the clojure code has changed, we no longer use AOT compilation so the syntax for invoking PDB from the jar has changed somewhat: java -cp puppetdb.jar clojure.main -m com.puppetlabs.puppetdb.core services -c config.ini Basically now we're invoked in the clojure.main class, and passing in parameters so that it knows what initial clojure file to invoke with the -m switch. In the past, we invoked the com.puppetlabs.puppetdb.core class directly, which no longer works. You can see examples of the new invocation litter in the ext/templates directory for the various distros. > When inspecting the puppetdb.jar it > doesn't contain any of the classes so it would appear that 'lein > uberhar' is failing to build said classes. > > When listing the content of > puppetdb-2.0.0-standalone.jar the do not exist. Also compiling the > source, 'lein compile' doesn't appear to be compiling the classes, no > "Compiling com.puppetlabs.puppetdb.core" or "Compiling clj-time.core" > output like when I build 1.6.3 and nothing created under > target/classes. This is intentional, we no longer compile these class files up front. ken. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAE4bNTmg3bZV%3DO8LarZBB-CjpLPeEzw1i0yg007QEaXsTkye5g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
