Thanks to all for all your answers! The Zippy extension won’t do in my case as I want the dependency to appear as a transitive dependency transparently for the consumers of my project. So I settled for re-publishing the same artifact as a JAR to Maven Central. (A tad wasteful, IMHO, but probably the best solution available for now.)
About the more long term solution, here are my 2 cents. Indeed Maven 3 cannot change the way those dependencies appear or not in the classpath (CP). But the current behavior (“do not expect zip dependencies to be available on the classpath”) should be clearly documented, as it is reasonable to expect otherwise. Maven 4 should make zip dependencies a real dependency, meaning, appearing on the CP. I fail to see a rationale for diverging. If some users use zip type dependencies for doing something else than having stuff appear on the classpath, well, they are misusing the dependency mechanism. Better understand their use cases and provide those users with better options to solve them. Or, by coherence, Maven should provide people with a general mechanism (that applies to all types of dependencies) to say “I depend on this artifact but I do not really want to have it in my CP”. Again, this is just my 2 cents. Le vendredi 18 avril 2025 à 09:36 +0200, Olivier Cailloux a écrit : > Dear list, > > I have read https://issues.apache.org/jira/browse/MNG-5567 but did not > manage to understand whether the issue has supposedly been solved or > even whether it is consensual that it should be solved. One person (who > seems to be, or was at the time, a Maven developer?) seems to argue > that it should, but other voices seem to be opposed to it. > > I just lost hours trying to understand why my (zip) dependency was not > reachable from my code, then thought that my IDE was at fault, and > finally realized that Maven itself does not seem to include zip types > in the classpath. > > I want to raise my support for fixing this: there is clearly a natural > expectation for this to work, considering that java accepts zip files > as dependencies. > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org