This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes  Could not find the main class using maven-shade-plugin Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark " Could not find the main class using maven-shade-plugin" Watch " Could not find the main class using maven-shade-plugin" New topic
Author

Could not find the main class using maven-shade-plugin

farsi abdourrahman
Greenhorn

Joined: Nov 10, 2012
Posts: 1
hi everybody i'm using Maven with maven-shade-plugin to generate executable jar from spring project , but when i build the project i can't execute the jar generated with(java -jar myProject.jar) because i get the error : could not find the main class, and my manifest file doesn't contain the main class, this is my pom.xml file :

pom.xml file my build tag :

my main class is in
please any help?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Could not find the main class using maven-shade-plugin
 
It's not a secret anymore!