Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: The Main-Class specified does not exist #7

Open
ChinaXing opened this issue Aug 26, 2017 · 5 comments
Open

Warning: The Main-Class specified does not exist #7

ChinaXing opened this issue Aug 26, 2017 · 5 comments

Comments

@ChinaXing
Copy link

lambda-cat.local ➜  shiva-master git:(f_perftest) ✗ lein uberjar
Warning: The Main-Class specified does not exist within the jar. It may not be executable as expected. A gen-class directive may be missing in the namespace which contains the main method, or the namespace has not been AOT-compiled.
Created /Users/LambdaCat/code/yz/shiva-console/shiva-master/target/uberjar/shiva-master-3.0.0.jar
Created /Users/LambdaCat/code/yz/shiva-console/shiva-master/target/uberjar/shiva-master-3.0.0-standalone.jar

if do not use lein-v, the warning not exist ...

the jar produced not contains whole master package...

it must have some bug int your plugin

@cch1
Copy link
Member

cch1 commented Aug 27, 2017

Can you create a minimal lien project that exhibits this behavior and make it available for me to clone?

@cch1
Copy link
Member

cch1 commented Jan 12, 2018

I'll close this issue in a week or so if I don't hear from you.

@RobotDisco
Copy link

I have reproduced the issue at https://github.com/RobotDisco/lein-v-fail.git

lein run works, lein uberjar does not because my project files are not included in the jar for some reason.

Note that the triggering action seems to be the prep-tasks statement recommended by this project ...

@RobotDisco
Copy link

This bug applies to both 6.1.0 and 6.2.0 .... unfortunately I don't see previous versions on Clojars so I cannot test against earlier versions.

@cch1
Copy link
Member

cch1 commented Feb 4, 2018

I'm trying to see where this problem could originate and so far my investigation has been fruitless. Please bear with me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants