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!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.