You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by "Sebastian Nagel (JIRA)" <ji...@apache.org> on 2018/05/29 07:23:00 UTC

[jira] [Comment Edited] (NUTCH-2584) Upgrade parse-tika to use Tika 1.18

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

Sebastian Nagel edited comment on NUTCH-2584 at 5/29/18 7:22 AM:
-----------------------------------------------------------------

Hi [~Bl4ck1c3], I've tried to verify the issue with {{javax.measure#unit-api;1.0}}:
1. updated PR and added ant target "report" to view the dependency tree of plugins:
{noformat}
cd src/plugin/parse-tika/
ant report
firefox ../../../build/parse-tika/org.apache.nutch-parse-tika-test.html
{noformat}
It's a transitive dependency of sis-netcdf.
2. deleted the dependency from .ivy2, .m2 and .ant cache directories
{noformat}
rm -rf ~/.ivy2/cache/javax.measure/unit-api/
rm -rf ~/.m2/repository/javax/measure/unit-api/
rm -rf ~/.ant/cache/javax.measure/unit-api/
{noformat}
and rebuild:
{noformat}
...
resolve-test:
[ivy:resolve] :: Apache Ivy 2.4.0 - 20141213170938 :: http://ant.apache.org/ivy/ ::
[ivy:resolve] :: loading settings :: file = .../nutch/ivy/ivysettings.xml
[ivy:resolve] downloading http://repo1.maven.org/maven2/javax/measure/unit-api/1.0/unit-api-1.0.jar ...
[ivy:resolve] ................... (27kB)
[ivy:resolve] .. (0kB)
[ivy:resolve]   [SUCCESSFUL ] javax.measure#unit-api;1.0!unit-api.jar(bundle) (601ms)
{noformat}

No glue, what the reason could be. Can you try to first remove the cache folders of the dependency an then run:
{noformat}
cd src/plugin/parse-tika
ant -v -d resolve-default
{noformat}
It will show how dependencies are resolved.


was (Author: wastl-nagel):
Hi [~Bl4ck1c3], I've tried to verify the issue with {{javax.measure#unit-api;1.0}}:
1. updated PR and added ant target "report" to view the dependency tree of plugins:
{noformat}
cd src/plugin/parse-tika/
ant report
firefox ../../../build/parse-tika/org.apache.nutch-parse-tika-test.html
{noformat}
It's a transitive dependency of sis-netcdf.
2. deleted the dependency from .ivy2, .m2 and .ant cache directories
{noformat}
rm -rf ~/.ivy2/cache/javax.measure/unit-api/
rm -rf ~/.m2/repository/javax/measure/unit-api/
rm -rf ~/.ant/cache/javax.measure/unit-api/
{noformat
and rebuild:
{noformat}
...
resolve-test:
[ivy:resolve] :: Apache Ivy 2.4.0 - 20141213170938 :: http://ant.apache.org/ivy/ ::
[ivy:resolve] :: loading settings :: file = .../nutch/ivy/ivysettings.xml
[ivy:resolve] downloading http://repo1.maven.org/maven2/javax/measure/unit-api/1.0/unit-api-1.0.jar ...
[ivy:resolve] ................... (27kB)
[ivy:resolve] .. (0kB)
[ivy:resolve]   [SUCCESSFUL ] javax.measure#unit-api;1.0!unit-api.jar(bundle) (601ms)
{noformat}

No glue, what the reason could be. Can you try to first remove the cache folders of the dependency an then run:
{noformat}
cd src/plugin/parse-tika
ant -v -d resolve-default
{noformat}
It will show how dependencies are resolved.

> Upgrade parse-tika to use Tika 1.18
> -----------------------------------
>
>                 Key: NUTCH-2584
>                 URL: https://issues.apache.org/jira/browse/NUTCH-2584
>             Project: Nutch
>          Issue Type: Improvement
>          Components: parser
>    Affects Versions: 1.14
>            Reporter: Sebastian Nagel
>            Priority: Minor
>             Fix For: 1.15
>
>
> Tika 1.18 is released and NUTCH-2583 includes and upgrade of tika-core.
> See [howto_upgrade_tika|https://github.com/apache/nutch/blob/master/src/plugin/parse-tika/howto_upgrade_tika.txt]. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)