[ https://jira.codehaus.org/browse/MASSEMBLY-730?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=355897#comment-355897 ]
Kristian Rosenvold edited comment on MASSEMBLY-730 at 11/9/14 12:17 PM: ------------------------------------------------------------------------ Hmm. There's something interesting here. Running with jdk8 on my mac all works as expected. It also works fine on 1.7 on linux. But 1.6 certainly fails on my linux box! was (Author: krosenvold): Hmm. There's something interesting here. Running with jdk8 on my mac all works as expected. > 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, 2.5.1 > Environment: JDK 6 > Maven 3.0.4 > Linux / Windows > Reporter: Guillaume Husta > Fix For: 2.5.2 > > > 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)