Lewis John McGibbney created ANY23-552:
------------------------------------------

             Summary: Change scope of Tika dependency to provided
                 Key: ANY23-552
                 URL: https://issues.apache.org/jira/browse/ANY23-552
             Project: Apache Any23
          Issue Type: Improvement
          Components: build, dependency
    Affects Versions: 2.6
            Reporter: Lewis John McGibbney
            Assignee: Lewis John McGibbney
             Fix For: 2.7


Right now Any23 defines the dependency on [tika-core and 
tika-parsers-standard-package|https://github.com/apache/any23/blob/master/pom.xml#L362-L379]
 without scope meaning that a default scope of *compile* is therefore assumed. 
In some cases this can be very inconvenient as the transitive version of Tika 
(and subsequent Tika dependencies) may introduce unwanted and unnecessary 
issues in the application dependency management logic.
I am proposing that we change the scope of the Tika dependencies to 
*<provided>* meaning that we expect the application JDK or container to provide 
the Tika dependencies at runtime. This also provides flexibility for the 
application as now they can specify exactly which version of Tika they wish to 
rely on and use for mimetype detection and encoding.
I also propose that we make the MIMETypeDetector implementation configurable 
which it is currently not. For example, it could easily be added to 
[default-configuration.properties|https://github.com/apache/any23/blob/master/api/src/main/resources/default-configuration.properties].
  




--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to