AnsweredAssumed Answered

What is Best Practice for overriding Tika/PDFBox jar files?

Question asked by devodl on May 22, 2012
Latest reply on Jun 1, 2012 by devodl
To parse PDF Form fields I had to modify/replace the Tika parser and PDFBox jar files that ship with Alfresco (read more here:

More specifically the modifications required the need to override the files:  tika-parsers-1.1-20120208.jar and pdfbox-1.6.0.jar that are deployed to tomcat/webapps/alfresco/WEB-INF/lib

I initially placed the modified jar files in tomcat/shared/lib but they were ignored by Tomcat/Alfresco.   When I replace the files that are deployed with Alfresco in tomcat/webapps/alfresco/WEB-INF/lib with the modified jar files then the modifications are used and PDF Form fields are parsed and mapped to the metadata fields in a content model.

Manually replacing the default jar files with the modified jar files is not the right approach. I really don't want to build an alfresco.war file with the modified jar files.

Where can I place the modified jar files so that they override the default files deployed by Alfresco?