The simpler Library folder of the Ant NetBeans project is used to determine the compilation time and the execution time of each individual project. If your project B βJava Class Libraryβ of type B has additional library dependencies, they will not be automatically forwarded or updated in Project A if you include B as library A.
When you create Project A, its .jar file will contain only the code for Project A, and the lib / folder will contain only .jar files from the Libraries folder. This can be confusing when updating dependent versions of a library, and you may forget to update them wherever you depend on project B.
You will need to manually manage the dependencies unless you switch to a project management system and create a system that does this, for example, Maven.
The NetBeans Maven project will have a Dependencies folder instead of the Libraries folder, and if Project B is correctly configured and registered as a Maven project, and Project A is also created as a Maven project, you can add a Dependency from B to A and B will forward this is dependency information for Maven Project A.
jla
source share