Thanks Andreas. It doesn't seem to solve the issue but it may help. I'm a newbie in the maven world, so, sorry if I misundestood something.
I have been trying to exclude the pdfbox dependency in fop (with the <exclusion(s)> tag) : <exclusions> <exclusion> <groupId>org.apache.pdfbox</groupId> <artifactId>fontbox</artifactId> </exclusion> </exclusions> but it doesn't help. In fact "mvn dependency:list" doesn't show pdfbox 2.0.4 (although it is listed in https://mvnrepository.com/artifact/org.apache.xmlgraphics/fop/2.2). Maybe I'm missing something?. This is the output from mvn dependency:list : [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building tmp_xmp_issue 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-dependency-plugin:2.1:list (default-cli) @ tmp_xmp_issue --- [INFO] [INFO] The following files have been resolved: [INFO] commons-io:commons-io:jar:1.3.1:compile [INFO] commons-logging:commons-logging:jar:1.2:compile [INFO] junit:junit:jar:3.8.1:test [INFO] org.apache.avalon.framework:avalon-framework-api:jar:4.3.1:compile [INFO] org.apache.avalon.framework:avalon-framework-impl:jar:4.3.1:compile [INFO] org.apache.pdfbox:fontbox:jar:2.0.7:compile [INFO] org.apache.pdfbox:pdfbox:jar:2.0.7:compile [INFO] org.apache.pdfbox:pdfbox-debugger:jar:2.0.7:compile [INFO] org.apache.pdfbox:pdfbox-tools:jar:2.0.7:compile [INFO] org.apache.pdfbox:xmpbox:jar:2.0.7:compile [INFO] org.apache.xmlgraphics:batik-anim:jar:1.9:compile [INFO] org.apache.xmlgraphics:batik-awt-util:jar:1.9:compile [INFO] org.apache.xmlgraphics:batik-bridge:jar:1.9:compile [INFO] org.apache.xmlgraphics:batik-constants:jar:1.9:compile [INFO] org.apache.xmlgraphics:batik-css:jar:1.9:compile [INFO] org.apache.xmlgraphics:batik-dom:jar:1.9:compile [INFO] org.apache.xmlgraphics:batik-ext:jar:1.9:compile [INFO] org.apache.xmlgraphics:batik-extension:jar:1.9:compile [INFO] org.apache.xmlgraphics:batik-gvt:jar:1.9:compile [INFO] org.apache.xmlgraphics:batik-i18n:jar:1.9:compile [INFO] org.apache.xmlgraphics:batik-parser:jar:1.9:compile [INFO] org.apache.xmlgraphics:batik-script:jar:1.9:compile [INFO] org.apache.xmlgraphics:batik-svg-dom:jar:1.9:compile [INFO] org.apache.xmlgraphics:batik-svggen:jar:1.9:compile [INFO] org.apache.xmlgraphics:batik-transcoder:jar:1.9:compile [INFO] org.apache.xmlgraphics:batik-util:jar:1.9:compile [INFO] org.apache.xmlgraphics:batik-xml:jar:1.9:compile [INFO] org.apache.xmlgraphics:fop:jar:2.2:compile [INFO] org.apache.xmlgraphics:xmlgraphics-commons:jar:2.2:compile [INFO] xalan:serializer:jar:2.7.2:compile [INFO] xalan:xalan:jar:2.7.2:compile [INFO] xml-apis:xml-apis:jar:1.3.04:compile [INFO] xml-apis:xml-apis-ext:jar:1.3.04:compile [INFO] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1.042s [INFO] Finished at: Thu Jul 27 15:00:34 ART 2017 [INFO] Final Memory: 9M/155M [INFO] ------------------------------------------------------------------------ Besides, it doesn't explain (at least for me) why just excluding the "services" from the META-INF solves the issue. Esteban ________________________________ De: Andreas Lehmkuehler <andr...@lehmi.de> Enviado: jueves, 27 de julio de 2017 05:04 p.m. Para: users@pdfbox.apache.org Asunto: Re: XMP issue when using fop and shaded jar fop uses PDFBox 2.0.4 so that there are 2 concurrent versions to be put into the jar. And obviously the older one "wins" Andreas