Closed olymk2 closed 2 years ago
Can you list the contents of the jar file in question? This happens when the classpath does not contain the file leiningen/help.clj
.
I am running these commands below, the project.clj has been modified to set the m2 folder because of permissions in the build environment,
curl https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein > lein
chmod a+x ./lein
cd leiningen-core
cp $pkgfiles/project.clj ./
../lein bootstrap
../lein uberjar
I am also running sed on the lein file to set LEIN_HOME to the install folder using this. ` sed -i 's@export LEIN_HOME="${LEIN_HOME:-"$HOME/.lein"}"@export LEIN_HOME="/usr/share/leiningen"@' ../bin/lein
`
help.clj is certainly missing for some reason so I guess I am doing something wrong with the above.
OK, it looks like you're generating the uberjar from the leiningen-core
library, which is not an application. That's why it doesn't include the tasks like help
. You need the leiningen
uberjar, not leiningen-core
.
Thanks for the assistance this got me on the right track, now packaged the repo for the package build is https://dev.getsol.us/source/leiningen/repository/master/ for future reference
I have built lein copying the lein script to the bin folder and the built jar to /usr/share how ever if I run lein help I get the issue's below if i happen to have .lein_classpath in a project it works but I dod not normally need this, can you explain why I may be hitting this issue, to get it included It needs to be built rather than just downloaded to be included, obviously I am missing a step which is causing the issue below.