[ https://jira.codehaus.org/browse/MASSEMBLY-730?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=355807#comment-355807 ]
Guillaume Husta commented on MASSEMBLY-730: ------------------------------------------- In fact it looks like this file is resolved by looking into the SystemClassLoader first, whereas it should look into the dependencies classloader only. No other resources of jre/lib/resources.jar are included. > jar-with-dependencies : a file in a dependency is overridden by the same file > in JDK / JRE > ------------------------------------------------------------------------------------------ > > Key: MASSEMBLY-730 > URL: https://jira.codehaus.org/browse/MASSEMBLY-730 > Project: Maven Assembly Plugin > Issue Type: Bug > Components: predefined descriptors > Affects Versions: 2.5 > Environment: JDK 6 > Maven 3.0.4 > Linux / Windows > Reporter: Guillaume Husta > > Since version 2.5, when I try to make a "jar-with-dependencies" with the > "single" goal, I get a strange mistake. > A file in a dependency (a JDBC driver in my example) is overridden by a file > with the same path / name included in a dependency from the JDK / JRE (in my > example jre/lib/resources.jar). > In my example, I just add the dependency > _org.postgresql:postgresql:9.3-1102-jdbc4_ to my POM. > Then I package to make a "jar-with-dependencies". > I can find the file _META-INF/services/java.sql.Driver_ in this jar. > But with the version 2.5 of plugin assembly, it contains > * {{sun.jdbc.odbc.JdbcOdbcDriver}} (originated from JRE : resources.jar) > and with version 2.4.1 of the plugin, it contains > * {{org.postgresql.Driver}} (originated from postgresql-9.3-1102-jdbc4.jar), > what I expect > In the previous version (2.4.1) there was no problem. -- This message was sent by Atlassian JIRA (v6.1.6#6162)