This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft 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 Java 8 in Action this week in the Java 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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Could not find the main class using maven-shade-plugin
 
Similar Threads
maven unable to download artifacts
Is there a tool to get source file list?
Wagon-ssh with Maven 2.2
How to create Jar file with all the dependencies
deploying the content inside the target folder