When building maven projects (Java) in Netbeans, by default, sources are left out. How to package sources in a jar in Netbeans for maven projects?
Something like:
myproject.jar
myproject-sources.jar
When building maven projects (Java) in Netbeans, by default, sources are left out. How to package sources in a jar in Netbeans for maven projects?
Something like:
myproject.jar
myproject-sources.jar
You can do it in two ways.
First way - Project Properties
source:jar
Second way - Custom Goals
source:jar
the name you selected
Note: For both ways, when you type source, Netbeans suggest many options, try them for other cool options!