Since Java 1.5 or so, javac is exploring the manifest of third-party jars to find other jars. This causes a number of unwanted side effects:
- When the jar files have been renamed, now we get a stream of warnings whenever we compile (can be resolved with
-Xlint:-path ) - Files that we do not want on the way to the classes are returned to it, even if they were left for some reason.
- In the assembly, additional time is added to search for all these additional cans due to the permission of this material, which we really do not want.
So I was wondering if anyone knows the magic call to disable this. Assuming that the Sun did not saddle us with another feature that we did not want and cannot turn off as soon as we get it.
java classpath jar manifest javac
Trejkaz
source share