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

Caleb Cushing commented on TIKA-2719:
-------------------------------------

possibly worth a new issue but, can't find any documentation and I get an error 
trying to use `tika.core`

{code:java}
module brix.util.file.main {
  exports com.xenoterracide.brix.util.file;
  requires java.base;
  requires spring.context;
  requires tika.core;
}
{code}

{code}
Type-safe dependency accessors is an incubating feature.
Type-safe project accessors is an incubating feature.

> Task :util:file:compileJava FAILED
/home/xeno/IdeaProjects/brix/modules/util/file/src/main/java/module-info.java:5:
 error: module not found: tika.core
  requires tika.core;
               ^
1 error

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':util:file:compileJava'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug 
option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1s
18 actionable tasks: 1 executed, 17 up-to-date
1 ❯ ./gradlew :util:file:dependencyInsight --configuration compileClasspath 
--dependency tika                                              # brix -> 
ccushing/copy-5 + !
Type-safe dependency accessors is an incubating feature.
Type-safe project accessors is an incubating feature.

> Task :util:file:dependencyInsight
org.apache.tika:tika-core:1.26
   variant "compile" [
      org.gradle.status              = release (not requested)
      org.gradle.usage               = java-api
      org.gradle.libraryelements     = jar
      org.gradle.category            = library

      Requested attributes not found in the selected variant:
         org.gradle.dependency.bundling = external
         org.gradle.jvm.environment     = standard-jvm
         org.gradle.jvm.version         = 11
   ]
   Selection reasons:
      - By constraint : dependency was locked to version '1.26'

org.apache.tika:tika-core:{strictly 1.26} -> 1.26
\--- compileClasspath

org.apache.tika:tika-core:1.+ -> 1.26
\--- compileClasspath

A web-based, searchable dependency report is available by adding the --scan 
option.

BUILD SUCCESSFUL in 760ms
1 actionable task: 1 executed

{code}


> Java 9: Requiring tika-parsers from module-info.java fails with "module not 
> found"
> ----------------------------------------------------------------------------------
>
>                 Key: TIKA-2719
>                 URL: https://issues.apache.org/jira/browse/TIKA-2719
>             Project: Tika
>          Issue Type: Bug
>          Components: parser
>    Affects Versions: 1.18
>            Reporter: James Baker
>            Priority: Major
>              Labels: java9, module
>
> When requiring `tika.parsers` from a Java 9 `module-info.java`, Maven throws 
> an error about not being able to find `tika.parsers`:
>  
> {{[ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile 
> (default-compile) on project annot8-components-tika: Compilation failure}}
> {{[ERROR] 
> /home/bakerj/annot8/annot8-components/annot8-components-tika/src/main/java/module-info.java:[9,16]
>  module not found: tika.parsers}}
>  
> It looks like this is likely to be a similar issue to: 
> [https://github.com/elastic/elasticsearch/issues/28984]
> For an example of a failing project, see: 
> [https://github.com/annot8/annot8-components/tree/tika]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to