Reputation: 3225
I have an Maven project with only this class:
This is <build><plugin>
from pom.xml:
And this is tree of project:
I build this project with goal assembly:single
and run it with command java -jar name.jar
The result is this error
I don't understand what is wrong.
Upvotes: 0
Views: 73
Reputation: 1383
Please call instead:
mvn clean package
It will generate required single jar with the org.raul.teste.Tester
inside.
Calling assembly:single
will generate META-INF\MANIFEST.MF
only in your case, if you will open/unzip the result jar file in this case you will see that compiled classes were not included.
Upvotes: 1