HCL-TECH-SOFTWARE / domino-jnx

Modern Domino Java API based on JNA access to Domino's C API
https://opensource.hcltechsw.com/domino-jnx/
Apache License 2.0
14 stars 3 forks source link

Modify maven-shade-plugin config in jnx-example-runjava to merge services #371

Closed jesse-gallagher closed 1 year ago

jesse-gallagher commented 1 year ago

During a build, Maven emits:

[WARNING] domino-jnx-commons-1.21.0-SNAPSHOT.jar, domino-jnx-jna-1.21.0-SNAPSHOT.jar define 1 overlapping resource: 
[WARNING]   - META-INF/services/com.hcl.domino.data.DocumentValueConverter
[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/

Presumably, this means that not all DocumentValueConverters are being properly registered in the combined JAR.