I am trying to export a specific package and its subpackages as non-executable jars in Eclipse. I directly click on the package that I want to export, and click "Export." However, when I export the jar, it only exports the top-level package that I selected, and all its classes.
I want to export all subpackages with it automatically. The only way I have been able to do this so far is to actually select each sub-package (and their sub-packages, etc.) for export. Is there a way to select all subpackages for export also automatically?
Example (with image):
I want to export the package "bar1" as a can. I directly click on the package bar1, click "Export" and select JAR. However, the subpackage bar1, "util". Not selected by default and will not be exported. If I wanted to export the subpackages of bar1, I would have to select them separately. It is a pain if there are many packages. Is there a way for Eclipse to add the util subpackage for export when trying to export the package bar1?

Feles source share