[jira] [Commented] (TIKA-2719) Java 9: Requiring tika-parsers from module-info.java fails with "module not found"
[ 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)
[jira] [Commented] (TIKA-2719) Java 9: Requiring tika-parsers from module-info.java fails with "module not found"
[ https://issues.apache.org/jira/browse/TIKA-2719?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16608934#comment-16608934 ] James Baker commented on TIKA-2719: --- With the latest snapshot build, this now seems to work correctly. I also had to require the `java.xml` module for some of the dependencies to work. Thanks. > 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 (v7.6.3#76005)
[jira] [Commented] (TIKA-2719) Java 9: Requiring tika-parsers from module-info.java fails with "module not found"
[ https://issues.apache.org/jira/browse/TIKA-2719?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16606193#comment-16606193 ] Hudson commented on TIKA-2719: -- SUCCESS: Integrated in Jenkins build tika-branch-1x #83 (See [https://builds.apache.org/job/tika-branch-1x/83/]) TIKA-2719 -- add automatic module names (tallison: [https://github.com/apache/tika/commit/92e488bb58472b94e5cff8e9153825128f0eb462]) * (edit) tika-batch/pom.xml * (edit) tika-core/pom.xml * (edit) tika-serialization/pom.xml * (edit) tika-app/pom.xml * (edit) tika-dl/pom.xml * (edit) tika-parsers/pom.xml * (edit) tika-xmp/pom.xml * (edit) tika-server/pom.xml * (edit) tika-eval/pom.xml * (edit) tika-langdetect/pom.xml * (edit) tika-translate/pom.xml > 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 (v7.6.3#76005)
[jira] [Commented] (TIKA-2719) Java 9: Requiring tika-parsers from module-info.java fails with "module not found"
[ https://issues.apache.org/jira/browse/TIKA-2719?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16606187#comment-16606187 ] Hudson commented on TIKA-2719: -- SUCCESS: Integrated in Jenkins build Tika-trunk #1559 (See [https://builds.apache.org/job/Tika-trunk/1559/]) TIKA-2719 -- add automatic module names (tallison: [https://github.com/apache/tika/commit/b99086ef54ada9fff2ca54c46528a204d6c36fc1]) * (edit) tika-batch/pom.xml * (edit) tika-eval/pom.xml * (edit) tika-xmp/pom.xml * (edit) tika-translate/pom.xml * (edit) tika-core/pom.xml * (edit) tika-dl/pom.xml * (edit) tika-langdetect/pom.xml * (edit) tika-serialization/pom.xml * (edit) tika-server/pom.xml * (edit) tika-app/pom.xml * (edit) tika-parsers/pom.xml > 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 (v7.6.3#76005)
[jira] [Commented] (TIKA-2719) Java 9: Requiring tika-parsers from module-info.java fails with "module not found"
[ https://issues.apache.org/jira/browse/TIKA-2719?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16606148#comment-16606148 ] Hudson commented on TIKA-2719: -- UNSTABLE: Integrated in Jenkins build tika-2.x-windows #313 (See [https://builds.apache.org/job/tika-2.x-windows/313/]) TIKA-2719 -- add automatic module names (tallison: rev b99086ef54ada9fff2ca54c46528a204d6c36fc1) * (edit) tika-serialization/pom.xml * (edit) tika-batch/pom.xml * (edit) tika-dl/pom.xml * (edit) tika-core/pom.xml * (edit) tika-server/pom.xml * (edit) tika-eval/pom.xml * (edit) tika-translate/pom.xml * (edit) tika-xmp/pom.xml * (edit) tika-app/pom.xml * (edit) tika-parsers/pom.xml * (edit) tika-langdetect/pom.xml > 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 (v7.6.3#76005)
[jira] [Commented] (TIKA-2719) Java 9: Requiring tika-parsers from module-info.java fails with "module not found"
[ https://issues.apache.org/jira/browse/TIKA-2719?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16606085#comment-16606085 ] Tim Allison commented on TIKA-2719: --- I've added these to most packages (in both {{master}} and {{branch_1x}}). Please take a look and let me know if I botched anything. I didn't include tika-bundle, tika-nlp or tika-example. > 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 (v7.6.3#76005)
[jira] [Commented] (TIKA-2719) Java 9: Requiring tika-parsers from module-info.java fails with "module not found"
[ https://issues.apache.org/jira/browse/TIKA-2719?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16597945#comment-16597945 ] Bob Paulin commented on TIKA-2719: -- {{org.apache.tika.core}} sounds more specific and better to me. > 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 (v7.6.3#76005)
[jira] [Commented] (TIKA-2719) Java 9: Requiring tika-parsers from module-info.java fails with "module not found"
[ https://issues.apache.org/jira/browse/TIKA-2719?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16597917#comment-16597917 ] Tim Allison commented on TIKA-2719: --- Thank you. I think the others will be straightforward from here. Should core be: {{org.apache.tika.core}} or {{org.apache.tika}}? > 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 (v7.6.3#76005)
[jira] [Commented] (TIKA-2719) Java 9: Requiring tika-parsers from module-info.java fails with "module not found"
[ https://issues.apache.org/jira/browse/TIKA-2719?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16597897#comment-16597897 ] Bob Paulin commented on TIKA-2719: -- Yeah for some reason I thought we already released tika.core. A fully qualified module for each project name seems like a good idea. > 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 (v7.6.3#76005)
[jira] [Commented] (TIKA-2719) Java 9: Requiring tika-parsers from module-info.java fails with "module not found"
[ https://issues.apache.org/jira/browse/TIKA-2719?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16597833#comment-16597833 ] Tim Allison commented on TIKA-2719: --- Thank you, [~bobpaulin]! I notice that commons-compress uses {{org.apache.commons.compress}} for their module name...should we do something like {{org.apache.tika.parsers}}? > 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 (v7.6.3#76005)
[jira] [Commented] (TIKA-2719) Java 9: Requiring tika-parsers from module-info.java fails with "module not found"
[ https://issues.apache.org/jira/browse/TIKA-2719?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16597674#comment-16597674 ] Bob Paulin commented on TIKA-2719: -- I would suggest adding {{Automatic-Module-Name:}} tika.parsers to the tika-parsers MANIFEST.MF. This will at least allow us to explicitly name the module until we can properly create a module-info.java for the parsers. See [http://branchandbound.net/blog/java/2017/12/automatic-module-name/] > 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 (v7.6.3#76005)