mahout-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Julien Aymé <julien.a...@gmail.com>
Subject Re: Error while compiling Ted dunning algo - knn-master
Date Mon, 25 Feb 2013 10:03:37 GMT
Hi,

Since you use a SNAPSHOT jar, you should specify a maven repository
which has the required snaphot jar in the <repositories> tag of your
knn-master pom.xml file.

An other way to install a SNAPSHOT jar on your local maven repository
is to download the project sources (from the version Mahout 0.8
SNAPSHOT (is it the trunk in svn?)), and execute "mvn install" command
in the project. This will build the jar and install it in your local
repo.

HTH,
Regards,
Julien

2013/2/25 vivek bairathi <bairathi.vivek@gmail.com>:
> Hi Dan,
>
> First of all thanks for your reply.
>
> I tried your code also but it is also giving the same error as mentioned in
> my previous mail.
> Can you please tell me a way to give the jar's locally to the maven tool,
> so that it will not show the error and take the jar's which are present
> locally from a specified path?
>
> Eagerly waiting for your reply.
>
> Thanks.
>
>
>
> On Thu, Feb 21, 2013 at 12:33 PM, Dan Filimon
> <dangeorge.filimon@gmail.com>wrote:
>
>> Hi Vivek,
>>
>> I'm helping Ted with the new algorithms. That repo is older (I also
>> have a fork https://github.com/dfilimon/knn), but I've since forked
>> Mahout and integrated the code there preparing it for landing in
>> upstream soon.
>>
>> My Mahout repo is https://github.com/dfilimon/mahout and the new
>> clustering algorithms are under org.apache.mahout.clustering.streaming
>> (
>> https://github.com/dfilimon/mahout/tree/skm/core/src/main/java/org/apache/mahout/clustering/streaming
>> ).
>>
>> Ted's version should still compile, but it might be that at some point
>> I pushed a version of my code that depended on local changes I made to
>> Mahout that are not in trunk. The bottom line is still to use my
>> version. :)
>>
>> Please have a look there and let us know how it works!
>>
>> On Thu, Feb 21, 2013 at 8:06 AM, vivek bairathi
>> <bairathi.vivek@gmail.com> wrote:
>> > Hi,
>> >
>> > I am getting following error and have tried everything but still not able
>> > to compile the code. Please help in resolving the following error:
>> >
>> > D:\knn-master>D:/apache-maven-3.0.4-bin/apache-maven-3.0.4/bin/mvn -e
>> > install
>> > [INFO] Error stacktraces are turned on.
>> > [INFO] Scanning for projects...
>> > [INFO]
>> > [INFO]
>> > ------------------------------------------------------------------------
>> > [INFO] Building knn 0.1
>> > [INFO]
>> > ------------------------------------------------------------------------
>> > [WARNING] The POM for org.apache.mahout:mahout-core:jar:0.8-SNAPSHOT is
>> > missing, no dependency information available
>> > [INFO]
>> > ------------------------------------------------------------------------
>> > [INFO] BUILD FAILURE
>> > [INFO]
>> > ------------------------------------------------------------------------
>> > [INFO] Total time: 0.599s
>> > [INFO] Finished at: Tue Feb 19 14:35:23 IST 2013
>> > [INFO] Final Memory: 4M/15M
>> > [INFO]
>> > ------------------------------------------------------------------------
>> > [ERROR] Failed to execute goal on project knn: Could not resolve
>> > dependencies for project knn:knn:jar:0.1: Could not find artifact
>> > org.apache.mahout:mahout-core:jar:0.8-SNAPSHOT -> [Help 1]
>> > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
>> > goal on project knn: Could not resolve dependencies for project
>> > knn:knn:jar:0.1: Could not find artifact
>> > org.apache.mahout:mahout-core:jar:0.8-SNAPSHOT
>> >         at
>> >
>> org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:210)
>> >         at
>> >
>> org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:117)
>> >         at
>> >
>> org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:258)
>> >         at
>> >
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:201)
>> >         at
>> >
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>> >         at
>> >
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>> >         at
>> >
>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
>> >         at
>> >
>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
>> >         at
>> >
>> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
>> >         at
>> >
>> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
>> >         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
>> >         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>> >         at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
>> >         at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>> >         at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>> >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> >         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>> >         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>> Source)
>> >         at java.lang.reflect.Method.invoke(Unknown Source)
>> >         at
>> >
>> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
>> >         at
>> >
>> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
>> >         at
>> >
>> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
>> >         at
>> > org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
>> > Caused by: org.apache.maven.project.DependencyResolutionException: Could
>> > not resolve dependencies for project knn:knn:jar:0.1: Could not find
>> > artifact org.apache.mahout:mahout-core:jar:0.8-SNAPSHOT
>> >         at
>> >
>> org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:189)
>> >         at
>> >
>> org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:185)
>> >         ... 22 more
>> > Caused by: org.sonatype.aether.resolution.DependencyResolutionException:
>> > Could not find artifact org.apache.mahout:mahout-core:jar:0.8-SNAPSHOT
>> >         at
>> >
>> org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:375)
>> >         at
>> >
>> org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:183)
>> >         ... 23 more
>> > Caused by: org.sonatype.aether.resolution.ArtifactResolutionException:
>> > Could not find artifact org.apache.mahout:mahout-core:jar:0.8-SNAPSHOT
>> >         at
>> >
>> org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538)
>> >         at
>> >
>> org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216)
>> >         at
>> >
>> org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:358)
>> >         ... 24 more
>> > Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Could
>> > not find artifact org.apache.mahout:mahout-core:jar:0.8-SNAPSHOT
>> >         at
>> >
>> org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:528)
>> >         ... 26 more
>> > [ERROR]
>> > [ERROR] Re-run Maven using the -X switch to enable full debug logging.
>> > [ERROR]
>> > [ERROR] For more information about the errors and possible solutions,
>> > please read the following articles:
>> > [ERROR] [Help 1]
>> >
>> http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
>> >
>> >
>> >
>> > Also, the error says that "org.apache.mahout:mahout-core:jar:0.8-SNAPSHOT
>> > is missing" I downloaded the jar but don't know how to give it to the
>> maven
>> > to resolve the above issue.
>> >
>> >
>> > Please help.
>> >
>> > Thanks in advance.
>> >
>> > --
>> > Regards,
>> > Vivek Bairathi
>>
>
>
>
> --
> Regards,
> Vivek Bairathi

Mime
View raw message