[ https://issues.apache.org/jira/browse/MNG-5567?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15285018#comment-15285018 ]
Michael Osipov edited comment on MNG-5567 at 5/16/16 6:36 PM: -------------------------------------------------------------- You can't. How are they supposed to cause harm? Anyway, the [classpath definition|http://docs.oracle.com/javase/8/docs/technotes/tools/windows/classpath.html#A1100592] says: {quote} Class paths to the JAR, zip or class files. Each class path should end with a file name or directory depending on what you are setting the class path to, as follows: * For a JAR or zip file that contains class files, the class path ends with the name of the zip or JAR file. * For class files in an unnamed package, the class path ends with the directory that contains the class files. * For class files in a named package, the class path ends with the directory that contains the root package, which is the first package in the full package name. {quote} So we aren't even compliant. What people currently do is package resources as JAR files because there is no other reasonable way. Moreover, this issue has been open for more than a year, you could have stepped up earlier. was (Author: michael-o): You can't. How are they supposed to cause harm? Anyway, the [classpath definition|http://docs.oracle.com/javase/8/docs/technotes/tools/windows/classpath.html#A1100592] says: {quote} Class paths to the JAR, zip or class files. Each class path should end with a file name or directory depending on what you are setting the class path to, as follows: * For a JAR or zip file that contains class files, the class path ends with the name of the zip or JAR file. * For class files in an unnamed package, the class path ends with the directory that contains the class files. * For class files in a named package, the class path ends with the directory that contains the root package, which is the first package in the full package name. {quote} So we aren't even compliant. What people currently do is package resources as JAR files because there is no other reasonable way. > Zip files are not included in classpaths at all > ----------------------------------------------- > > Key: MNG-5567 > URL: https://issues.apache.org/jira/browse/MNG-5567 > Project: Maven > Issue Type: Bug > Components: Dependencies > Affects Versions: 3.3.9 > Reporter: Pablo La Greca > Assignee: Michael Osipov > Priority: Critical > Fix For: 3.4.0 > > > when i added a dependency that was zip file > eg > {code:xml} <dependency> > <groupId>hsqldb</groupId> > <artifactId>hsqldb</artifactId> > <version>1.7.3.0</version> > <scope>provided</scope> > <type>zip</type> > </dependency> > {code} > this file was not included in the test classpath and so the test would not > pass -- This message was sent by Atlassian JIRA (v6.3.4#6332)