Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overlapping jars Warnings from Maven Build #13

Open
2 of 3 tasks
Jonathan-Zollinger opened this issue Oct 26, 2023 · 1 comment
Open
2 of 3 tasks

Overlapping jars Warnings from Maven Build #13

Jonathan-Zollinger opened this issue Oct 26, 2023 · 1 comment
Assignees
Labels
bug Something isn't working Quabity Assuance "qua" something... "quaa..." "quaarr..." Quality of Life improves usability / experience, but not needed will support eventually definitely a good thing but not critical atm

Comments

@Jonathan-Zollinger
Copy link
Member

Jonathan-Zollinger commented Oct 26, 2023

Current Behavior

currently (as of this commit) maven's otuput includes a bunch of stuff about overlapping jars between dependencies.

[WARNING] jackson-annotations-2.14.2.jar, jackson-core-2.14.2.jar, jackson-databind-2.14.2.jar, jackson-datatype-jdk8-2.14.2.jar, jackson-datatype-jsr310-2.14.2.jar, jakarta.annotation-api-2.1.1.jar, jakarta.inject-api-2.0.1.jar, javax.annotation-api-1.3.2.jar, log4j-api-2.19.0.jar, log4j-core-2.19.0.jar, log4j-slf4j-impl-2.19.0.jar, micronaut-aop-3.9.3.jar, micronaut-buffer-netty-3.9.3.jar, micronaut-context-3.9.3.jar, micronaut-core-3.9.3.jar, micronaut-core-reactive-3.9.3.jar, micronaut-http-3.9.3.jar, micronaut-http-client-3.9.3.jar, micronaut-http-client-core-3.9.3.jar, micronaut-http-netty-3.9.3.jar, micronaut-inject-3.9.3.jar, micronaut-jackson-core-3.9.3.jar, micronaut-jackson-databind-3.9.3.jar, micronaut-json-core-3.9.3.jar, micronaut-picocli-4.3.0.jar, micronaut-runtime-3.9.3.jar, micronaut-websocket-3.9.3.jar, netty-buffer-4.1.92.Final.jar, netty-codec-4.1.92.Final.jar, netty-codec-http-4.1.92.Final.jar, netty-codec-http2-4.1.92.Final.jar, netty-codec-socks-4.1.92.Final.jar, netty-common-4.1.92.Final.jar, netty-handler-4.1.92.Final.jar, netty-handler-proxy-4.1.92.Final.jar, netty-resolver-4.1.92.Final.jar, netty-transport-4.1.92.Final.jar, netty-transport-native-unix-common-4.1.92.Final.jar, picocli-4.6.3.jar, reactive-streams-1.0.4.jar, reactor-core-3.5.0.jar, slf4j-api-1.7.36.jar, snakeyaml-2.0.jar, tarvester-0.1.jar, validation-api-2.0.1.Final.jar define 1 overlapping resource: 
[WARNING]   - META-INF/MANIFEST.MF
[WARNING] jackson-core-2.14.2.jar, jackson-databind-2.14.2.jar, jackson-datatype-jdk8-2.14.2.jar, jackson-datatype-jsr310-2.14.2.jar, log4j-api-2.19.0.jar, picocli-4.6.3.jar, snakeyaml-2.0.jar define 1 overlapping classes: 
[WARNING]   - META-INF.versions.9.module-info
[WARNING] micronaut-buffer-netty-3.9.3.jar, micronaut-context-3.9.3.jar, micronaut-http-3.9.3.jar, micronaut-http-client-core-3.9.3.jar, micronaut-http-netty-3.9.3.jar, micronaut-jackson-databind-3.9.3.jar, micronaut-runtime-3.9.3.jar define 2 overlapping resources: 
[WARNING]   - META-INF/config-properties.adoc
[WARNING]   - META-INF/spring-configuration-metadata.json
[WARNING] netty-buffer-4.1.92.Final.jar, netty-codec-4.1.92.Final.jar, netty-codec-http-4.1.92.Final.jar, netty-codec-http2-4.1.92.Final.jar, netty-codec-socks-4.1.92.Final.jar, netty-common-4.1.92.Final.jar, netty-handler-4.1.92.Final.jar, netty-handler-proxy-4.1.92.Final.jar, netty-resolver-4.1.92.Final.jar, netty-transport-4.1.92.Final.jar, netty-transport-native-unix-common-4.1.92.Final.jar define 1 overlapping resource: 
[WARNING]   - META-INF/io.netty.versions.properties
[WARNING] jackson-annotations-2.14.2.jar, jackson-core-2.14.2.jar, jackson-databind-2.14.2.jar, jackson-datatype-jsr310-2.14.2.jar, log4j-api-2.19.0.jar, log4j-core-2.19.0.jar, log4j-slf4j-impl-2.19.0.jar, micronaut-core-3.9.3.jar define 1 overlapping resource: 
[WARNING]   - META-INF/LICENSE
[WARNING] jackson-annotations-2.14.2.jar, jackson-core-2.14.2.jar, jackson-databind-2.14.2.jar, log4j-api-2.19.0.jar, log4j-core-2.19.0.jar, log4j-slf4j-impl-2.19.0.jar define 1 overlapping resource: 
[WARNING]   - META-INF/NOTICE
[WARNING] jakarta.inject-api-2.0.1.jar, javax.annotation-api-1.3.2.jar define 1 overlapping resource: 
[WARNING]   - META-INF/LICENSE.txt
[WARNING] jakarta.annotation-api-2.1.1.jar, jakarta.inject-api-2.0.1.jar define 1 overlapping resource: 
[WARNING]   - META-INF/NOTICE.md
[WARNING] log4j-api-2.19.0.jar, log4j-core-2.19.0.jar, log4j-slf4j-impl-2.19.0.jar define 1 overlapping resource: 
[WARNING]   - META-INF/DEPENDENCIES
[WARNING] maven-shade-plugin has detected that some class files are
[WARNING] present in two or more JARs. When this happens, only one
[WARNING] single version of the class is copied to the uber jar.
[WARNING] Usually this is not harmful and you can skip these warnings,
[WARNING] otherwise try to manually exclude artifacts based on
[WARNING] mvn dependency:tree -Ddetail=true and the above output.
[WARNING] See http://maven.apache.org/plugins/maven-shade-plugin/

We want to be sure this isn't a one-off problem.

  • This problem is something that I can consistently produce.

Expected Behavior

maven compiles w/o any warnings

Steps To Reproduce

1. pull latest build (or at least commit [5c754d02ad084198b70c43f6a80c065c18ff0ad0](https://github.com/PeanutButter-Unicorn/Tarvester/commit/5c754d02ad084198b70c43f6a80c065c18ff0ad0)) 
2. from the root dir, call `mvn clean install`
3. enjoy

A picture is worth a thousand words

WindowsTerminal_2EleLBw8Sb

Environment

OS: Windows 11
repeated in intellij (community 2023.1) & manually via PowerShell 7.3.8

Code of Conduct

Requirements

  • mvn builds without warnings
@Jonathan-Zollinger Jonathan-Zollinger added bug Something isn't working Quality of Life improves usability / experience, but not needed labels Oct 26, 2023
@Jonathan-Zollinger Jonathan-Zollinger self-assigned this Oct 26, 2023
@Jonathan-Zollinger Jonathan-Zollinger added the Quabity Assuance "qua" something... "quaa..." "quaarr..." label Oct 28, 2023
@Jonathan-Zollinger Jonathan-Zollinger added this to the QoL improvements on 1.0 milestone Nov 10, 2023
@Jonathan-Zollinger
Copy link
Member Author

updated printout as of v0.0.4 release

[WARNING] jakarta.annotation-api-2.1.1.jar, jakarta.inject-api-2.0.1.jar, jakarta.transaction-api-2.0.1.jar define 1 overlapping resource: 
[WARNING]   - META-INF/NOTICE.md
[WARNING] HikariCP-5.1.0.jar, flyway-core-9.22.3.jar, gson-2.10.1.jar, h2-2.2.224.jar, jackson-annotations-2.15.3.jar, jackson-core-2.15.3.jar, jackson-databind-2.15.3.jar, jackson-dataformat-toml-2.15.3.jar, jackson-datatype-jdk8-2.15.3.jar, jackson-datatype-jsr310-2.15.3.jar, jakarta.annotation-api-2.1.1.jar, jakarta.inject-api-2.0.1.jar, jakarta.transaction-api-2.0.1.jar, jakarta.validation-api-3.0.2.jar, logback-classic-1.4.11.jar, logback-core-1.4.11.jar, micronaut-aop-4.2.0.jar, micronaut-buffer-netty-4.2.0.jar, micronaut-context-4.2.0.jar, micronaut-context-propagation-4.2.0.jar, micronaut-core-4.2.0.jar, micronaut-core-reactive-4.2.0.jar, micronaut-data-connection-4.3.1.jar, micronaut-data-connection-jdbc-4.3.1.jar, micronaut-data-jdbc-4.3.1.jar, micronaut-data-model-4.3.1.jar, micronaut-data-runtime-4.3.1.jar, micronaut-data-tx-4.3.1.jar, micronaut-data-tx-jdbc-4.3.1.jar, micronaut-discovery-core-4.2.0.jar, micronaut-flyway-6.2.1.jar, micronaut-http-4.2.0.jar, micronaut-http-client-4.2.0.jar, micronaut-http-client-core-4.2.0.jar, micronaut-http-netty-4.2.0.jar, micronaut-inject-4.2.0.jar, micronaut-jackson-core-4.2.0.jar, micronaut-jackson-databind-4.2.0.jar, micronaut-jdbc-5.2.0.jar, micronaut-jdbc-hikari-5.2.0.jar, micronaut-json-core-4.2.0.jar, micronaut-management-4.2.0.jar, micronaut-reactor-3.1.0.jar, micronaut-retry-4.2.0.jar, micronaut-router-4.2.0.jar, micronaut-serde-api-2.4.0.jar, micronaut-serde-jackson-2.4.0.jar, micronaut-serde-support-2.4.0.jar, micronaut-validation-4.2.0.jar, micronaut-websocket-4.2.0.jar, netty-buffer-4.1.101.Final.jar, netty-codec-4.1.101.Final.jar, netty-codec-http-4.1.101.Final.jar, netty-codec-http2-4.1.101.Final.jar, netty-codec-socks-4.1.101.Final.jar, netty-common-4.1.101.Final.jar, netty-handler-4.1.101.Final.jar, netty-handler-proxy-4.1.101.Final.jar, netty-resolver-4.1.101.Final.jar, netty-transport-4.1.101.Final.jar, netty-transport-native-unix-common-4.1.101.Final.jar, reactive-streams-1.0.4.jar, reactor-core-3.5.11.jar, slf4j-api-2.0.9.jar, snakeyaml-2.0.jar, threshr-0.0.4.jar define 1 overlapping resource: 
[WARNING]   - META-INF/MANIFEST.MF
[WARNING] jackson-annotations-2.15.3.jar, jackson-core-2.15.3.jar, jackson-databind-2.15.3.jar, jackson-dataformat-toml-2.15.3.jar, jackson-datatype-jdk8-2.15.3.jar, jackson-datatype-jsr310-2.15.3.jar define 2 overlapping resources: 
[WARNING]   - META-INF/LICENSE
[WARNING]   - META-INF/NOTICE
[WARNING] gson-2.10.1.jar, jackson-core-2.15.3.jar, jackson-databind-2.15.3.jar, jackson-dataformat-toml-2.15.3.jar, jackson-datatype-jdk8-2.15.3.jar, jackson-datatype-jsr310-2.15.3.jar, slf4j-api-2.0.9.jar, snakeyaml-2.0.jar define 1 overlapping classes: 
[WARNING]   - META-INF.versions.9.module-info
[WARNING] micronaut-data-tx-4.3.1.jar, micronaut-data-tx-jdbc-4.3.1.jar define 1 overlapping resource: 
[WARNING]   - META-INF/native-image/io.micronaut.data/data-tx/native-image.properties
[WARNING] jakarta.annotation-api-2.1.1.jar, jakarta.transaction-api-2.0.1.jar define 1 overlapping resource: 
[WARNING]   - META-INF/LICENSE.md
[WARNING] flyway-core-9.22.3.jar, jakarta.inject-api-2.0.1.jar, slf4j-api-2.0.9.jar define 1 overlapping resource: 
[WARNING]   - META-INF/LICENSE.txt
[WARNING] netty-buffer-4.1.101.Final.jar, netty-codec-4.1.101.Final.jar, netty-codec-http-4.1.101.Final.jar, netty-codec-http2-4.1.101.Final.jar, netty-codec-socks-4.1.101.Final.jar, netty-common-4.1.101.Final.jar, netty-handler-4.1.101.Final.jar, netty-handler-proxy-4.1.101.Final.jar, netty-resolver-4.1.101.Final.jar, netty-transport-4.1.101.Final.jar, netty-transport-native-unix-common-4.1.101.Final.jar define 1 overlapping resource: 
[WARNING]   - META-INF/io.netty.versions.properties
[WARNING] micronaut-buffer-netty-4.2.0.jar, micronaut-context-4.2.0.jar, micronaut-data-jdbc-4.3.1.jar, micronaut-data-runtime-4.3.1.jar, micronaut-discovery-core-4.2.0.jar, micronaut-flyway-6.2.1.jar, micronaut-http-4.2.0.jar, micronaut-http-client-core-4.2.0.jar, micronaut-http-netty-4.2.0.jar, micronaut-jackson-databind-4.2.0.jar, micronaut-jdbc-hikari-5.2.0.jar, micronaut-management-4.2.0.jar, micronaut-reactor-3.1.0.jar, micronaut-router-4.2.0.jar, micronaut-serde-api-2.4.0.jar, micronaut-serde-jackson-2.4.0.jar, micronaut-validation-4.2.0.jar define 2 overlapping resources: 
[WARNING]   - META-INF/config-properties.adoc
[WARNING]   - META-INF/spring-configuration-metadata.json
[WARNING] maven-shade-plugin has detected that some files are
[WARNING] present in two or more JARs. When this happens, only one

@Jonathan-Zollinger Jonathan-Zollinger removed this from the QoL improvements on 0.0.1 milestone Jun 19, 2024
@Jonathan-Zollinger Jonathan-Zollinger added the will support eventually definitely a good thing but not critical atm label Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Quabity Assuance "qua" something... "quaa..." "quaarr..." Quality of Life improves usability / experience, but not needed will support eventually definitely a good thing but not critical atm
Projects
None yet
Development

No branches or pull requests

1 participant