You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by govind nitk <go...@gmail.com> on 2018/07/28 12:27:28 UTC
using any23 with nutch
hi all,
I want to use any23 2.3-snapshot version with nutch. This is what I have
done:
1. have "mvn install" in any23 repo.
so jars are released in local ~/.m2 dir.
ex. /home/govind/.m2/repository/org/apache/any23/apache-any23-core/2.3-SNAPSHOT/apache-any23-core-2.3-SNAPSHOT.jar
2. nutch repo, plugins/any23/ivy.xml
<dependency org="org.apache.any23" name="apache-any23-core" rev="2.3"
conf="*->default">
3. In nutch repo, have changed ivy setting as below:
<property name="local-maven2"
value="${user.home}/.m2/repository/[organisation]/[module]/[revision]/[module]-[revision](-[classifier]).[ext]"
override="false" />
<chain name="my_local">
<filesystem name="local-maven2" m2compatible="true" >
<artifact pattern="${local-maven2}"/>
<ivy pattern="${local-maven2}"/>
</filesystem>
</chain>
<module organisation="org.apache.any23" name=".*" resolver="my_local"
></module>
So, expectation is any23 will start using my_local releases.
But its failing with below error:
resolve-default:
[ivy:resolve] :: loading settings :: file =
/home/govind/apache/nutch/ivy/ivysettings.xml
[ivy:resolve]
[ivy:resolve] :: problems summary ::
[ivy:resolve] :::: WARNINGS
[ivy:resolve] module not found: org.apache.any23#apache-any23;2.3
[ivy:resolve] ==== local-maven2: tried
[ivy:resolve]
/home/govind/.m2/repository/org/apache/any23/apache-any23/2.3/apache-any23-2.3.xml
[ivy:resolve] -- artifact
org.apache.any23#apache-any23;2.3!apache-any23.jar:
[ivy:resolve]
/home/govind/.m2/repository/org/apache/any23/apache-any23/2.3/apache-any23-2.3.jar
[ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve] :: UNRESOLVED DEPENDENCIES ::
[ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve] :: org.apache.any23#apache-any23;2.3: not found
[ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]
[ivy:resolve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
Target 'resolve-default' failed with message 'impossible to resolve
dependencies:
Am I missing something in local resolver defined for any23 ?
Is it the case, that we can not use the locally released jars in nutch ?
Is there any other hack I can use to this resolved ?
Regards,
Govind
Re: using any23 with nutch
Posted by govind nitk <go...@gmail.com>.
Tried 2.3-SNAPSHOT instead of 2.3 as :
<dependency org="org.apache.any23" name="apache-any23-core"
rev="2.3-SNAPSHOT" conf="*->default">
Error persists.
On Sat, Jul 28, 2018 at 5:57 PM govind nitk <go...@gmail.com> wrote:
>
> hi all,
>
> I want to use any23 2.3-snapshot version with nutch. This is what I have
> done:
> 1. have "mvn install" in any23 repo.
> so jars are released in local ~/.m2 dir.
>
> ex. /home/govind/.m2/repository/org/apache/any23/apache-any23-core/2.3-SNAPSHOT/apache-any23-core-2.3-SNAPSHOT.jar
>
> 2. nutch repo, plugins/any23/ivy.xml
>
> <dependency org="org.apache.any23" name="apache-any23-core" rev="2.3"
> conf="*->default">
>
> 3. In nutch repo, have changed ivy setting as below:
> <property name="local-maven2"
>
> value="${user.home}/.m2/repository/[organisation]/[module]/[revision]/[module]-[revision](-[classifier]).[ext]"
> override="false" />
>
> <chain name="my_local">
> <filesystem name="local-maven2" m2compatible="true" >
> <artifact pattern="${local-maven2}"/>
> <ivy pattern="${local-maven2}"/>
> </filesystem>
> </chain>
>
> <module organisation="org.apache.any23" name=".*" resolver="my_local"
> ></module>
>
>
> So, expectation is any23 will start using my_local releases.
>
> But its failing with below error:
>
> resolve-default:
> [ivy:resolve] :: loading settings :: file =
> /home/govind/apache/nutch/ivy/ivysettings.xml
> [ivy:resolve]
> [ivy:resolve] :: problems summary ::
> [ivy:resolve] :::: WARNINGS
> [ivy:resolve] module not found: org.apache.any23#apache-any23;2.3
> [ivy:resolve] ==== local-maven2: tried
> [ivy:resolve]
> /home/govind/.m2/repository/org/apache/any23/apache-any23/2.3/apache-any23-2.3.xml
> [ivy:resolve] -- artifact
> org.apache.any23#apache-any23;2.3!apache-any23.jar:
> [ivy:resolve]
> /home/govind/.m2/repository/org/apache/any23/apache-any23/2.3/apache-any23-2.3.jar
> [ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:resolve] :: UNRESOLVED DEPENDENCIES ::
> [ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:resolve] :: org.apache.any23#apache-any23;2.3: not found
> [ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:resolve]
> [ivy:resolve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
> Target 'resolve-default' failed with message 'impossible to resolve
> dependencies:
>
>
> Am I missing something in local resolver defined for any23 ?
> Is it the case, that we can not use the locally released jars in nutch ?
> Is there any other hack I can use to this resolved ?
>
> Regards,
> Govind
>