using any23 with nutch

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

using any23 with nutch

govind nitk
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
Reply | Threaded
Open this post in threaded view
|

Re: using any23 with nutch

govind nitk
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 <[hidden email]> 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
>