[ 
https://issues.apache.org/jira/browse/TIKA-3614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17456284#comment-17456284
 ] 

Vamsi Molli edited comment on TIKA-3614 at 12/15/21, 5:57 AM:
--------------------------------------------------------------

Used Tika core. getting issue reading import 
org.apache.tika.metadata.TikaMetadataKeys ,Metadata.RESOURCE_NAME_KEY from 
org.apache.tika.metadata

api(group: 'org.apache.tika', name: 'tika-core', version: '2.1.0')

{         // Tika requires a version of jackson that conflicts with other 
dependencies.         exclude group: "com.fasterxml.jackson.core"     }


                     ^
  symbol:   variable TikaMetadataKeys
  location: class FileTypeDetector


was (Author: vamsi452):
Used Tika core. getting issue reading import 
org.apache.tika.metadata.TikaMetadataKeys ,Metadata.RESOURCE_NAME_KEY from 
org.apache.tika.metadata

api(group: 'org.apache.tika', name: 'tika-core', version: '2.1.0')

{         // Tika requires a version of jackson that conflicts with other 
dependencies.         exclude group: "com.fasterxml.jackson.core"     }



/home/ubuntu/projects/epiq/ls/Qmulus_Backend/AppCommon/src/com/stormed/common/utils/FileTypeDetector.java:13:
 error: cannot find symbol
import org.apache.tika.metadata.TikaMetadataKeys;
                               ^
  symbol:   class TikaMetadataKeys
  location: package org.apache.tika.metadata
/home/ubuntu/projects/epiq/ls/Qmulus_Backend/AppCommon/src/com/stormed/common/utils/FileTypeDetector.java:74:
 error: cannot find symbol
            metadata.add(Metadata.RESOURCE_NAME_KEY, paths);
                                 ^
  symbol:   variable RESOURCE_NAME_KEY
  location: class Metadata
/home/ubuntu/projects/epiq/ls/Qmulus_Backend/AppCommon/src/com/stormed/common/utils/FileTypeDetector.java:145:
 error: cannot find symbol
        metadata.add(TikaMetadataKeys.RESOURCE_NAME_KEY, file.getName());
                     ^
  symbol:   variable TikaMetadataKeys
  location: class FileTypeDetector

> Trying to upgrade from 1.27 to 2.1.0
> ------------------------------------
>
>                 Key: TIKA-3614
>                 URL: https://issues.apache.org/jira/browse/TIKA-3614
>             Project: Tika
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 2.1.0
>            Reporter: Vamsi Molli
>            Priority: Major
>              Labels: gradle
>
> Currently, my application is using the Tika version of 1.27, in the Gradle 
> file we wrote like below to download and use Tika components.
> api(group: 'org.apache.tika', name: 'tika-parsers', version: '1.27')
> {         // Tika requires a version of jackson that conflicts with other 
> dependencies.         exclude group: "com.fasterxml.jackson.core"     }
> but when trying to update to 2.1.0 with the below code. seeing some of the 
> imports are missing.
> import org.apache.tika.config.TikaConfig;
> import org.apache.tika.detect.Detector;
> import org.apache.tika.exception.TikaException;
> import org.apache.tika.io.TikaInputStream;
> import org.apache.tika.metadata.HttpHeaders;
> import org.apache.tika.metadata.Metadata;
> import org.apache.tika.metadata.TikaMetadataKeys;
> import org.apache.tika.mime.MediaType;
> import org.apache.tika.mime.MimeType;
> import org.apache.tika.mime.MimeTypeException;
> import org.apache.tika.parser.AutoDetectParser;
> import org.apache.tika.parser.ParseContext;
> Tried with below, causing the above imports missing.
>  
> api(group: 'org.apache.tika', name: 'tika-parsers-standard-package', version: 
> '2.1.0')
> {         // Tika requires a version of jackson that conflicts with other 
> dependencies.         exclude group: "com.fasterxml.jackson.core"     }
> Please let me know what imports I need to change to fix above issues.



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

Reply via email to