I have a project which has the apache-compress library as a compile time dependency. This library appears to use Maven and has a POM file with a dependency set
apache-compress
Optional dependencies aren't considered for transitive dependency resolution, and have to be added explicitly if necessary. (It's the same in Maven.)