You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Hudson (Jira)" <ji...@apache.org> on 2022/06/16 14:29:00 UTC

[jira] [Commented] (MASSEMBLY-730) jar-with-dependencies : a file in a dependency is overridden by the same file in JDK / JRE

    [ https://issues.apache.org/jira/browse/MASSEMBLY-730?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17555103#comment-17555103 ] 

Hudson commented on MASSEMBLY-730:
----------------------------------

Build succeeded in Jenkins: Maven » Maven TLP » maven-assembly-plugin » master #13

See https://ci-maven.apache.org/job/Maven/job/maven-box/job/maven-assembly-plugin/job/master/13/

> jar-with-dependencies : a file in a dependency is overridden by the same file in JDK / JRE
> ------------------------------------------------------------------------------------------
>
>                 Key: MASSEMBLY-730
>                 URL: https://issues.apache.org/jira/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
>            Assignee: Kristian Rosenvold
>            Priority: Major
>             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
(v8.20.7#820007)