I'm new to Clojure and I'm struggling to build the program using:
lein do test, uberjar, pom
And then the program should be runnable using the following command:
java -jar target/{artifactid}-{version}-standalone.jar
I'm having a simple code to sort String, the project is made in maven, and I have added Clojure dependency to the pom.xml
Now I'm running this in IntelliJ IDEA using the Cursive plugin but I guess this is not what I want to have.
I'm totally new in this field so any help would be very appreciated. Thanks!!
Related
I found these two links:
Clojure on emacs fails... & clojure isn't in your exec...
I'm unable to get cider to run on MacOS. I've been just using lein on the command line, but I would prefer to use cider.
I build a new project, like so:
lein new ec
open up core.clj
run Mx cider-jack-in
and I get:
The lein executable isn’t on your ‘exec-path’
I checked for the default in cider, and it is lein.
Is there any way to run cider on MacOS?
there are some macOS related problems with exec path detection for emacs.
There is an emacs package, that should solve this issue: exec-path-from-shell.
It used to help me when i was using macos (like 3 years ago, but i think it is still valid)
Otherwise you can try to put an absolute path for lein (which lein in terminal) to cider-lein-command: M-x customize-group [ret] cider [ret] -> Cider lein command, that should also work.
I'm new to Yeoman and am trying to build the final package once the project is done.
I couldn't find any article or tutorial related to this. Ideas on how to do that?
After doing some more researches I found out that we just need to use a simple command: grunt build and that's it. Package done.
I've got a very small and simple github project which I would like to integrate with travis-ci.org (.travis.yml file). Unfortunately, compilation fails (travis console log), the compiler cannot find cppunit even though I run sudo apt-get ... to install it.
The test/list_test.h file has got the following line:
#include <cppunit/TestFixture.h>
As I said, travis compiler cannot find cppunit headers. Can anyone point me out what am I doing wrong?
CMake was OK. Travis Script was also OK. But the cppunit package was mistaken. It should be libcppunit-dev instead of libcppunit-1.12-1
The latest release of MRUnit is 0.9. This release does not support DistributedCache.
This https://issues.apache.org/jira/browse/MRUNIT-98 shows that 1.0.0 supports DistributedCache. I want to get ahold of an MRUnit 1.0.0 jar that is built for hadoop1, but I cannot find one. So I tried to build it myself, but the required jars are missing from the maven repo.
Here is the command I'm using:
mvn package -DenvClassifier=hadoop1 -DspecificHadoopVersion=1.0.3
It fails with dependency errors. I can get ahold of the required jars manually, but I don't know how to get the build to use them.
How can I get ahold of the jar I want (either build it myself, or download it)?
I figured this out after I posted the question.
The answer is simple. Checkout the hadoop1 branch, and build that:
$ git checkout -b local/trunk-hadoop1 remotes/origin/trunk-hadoop1
$ mvn package
I am trying to compile my own version of clojure-contrib with Maven I get the following exception:
Exception in thread "main" java.lang.IllegalStateException: Can't dynamically bind non-dynamic var: clojure.contrib.pprint/*format-str*, compiling:(dispatch.clj:90)
I am also using the following command to compile it:
mvn package -Dclojure.jar=/usr/local/share/jars/clojure.jar
clojure.jar is link to the actual jar (that is on the same directory) because I am using a version that I compiled from the Git repository.
Any Ideas?
Thanks in advance for your comments! =)
clojure-contrib, the single monolithic build, is deprecated after Clojure 1.2.0 and is not actively maintained. It doesn't build on the latest Clojure 1.3.0-alpha* releases.
New contrib libraries, one per Github repository, are being created under http://github.com/clojure
See http://dev.clojure.org/display/design/Clojure+Contrib and its sub-pages for more information.