This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android 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
 
Similar Threads
How to create Jar file with all the dependencies
deploying the content inside the target folder
maven unable to download artifacts
Wagon-ssh with Maven 2.2
Is there a tool to get source file list?