You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by "kaveh minooie (JIRA)" <ji...@apache.org> on 2013/09/16 19:42:00 UTC

[jira] [Commented] (NUTCH-1642) mvn compile fails on Centos6.3

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

kaveh minooie commented on NUTCH-1642:
--------------------------------------

I don't know if you know this or not, but if you don't, nutch is build using 'ant' and the dependencies get resolved through ivy not maven. I know there is a pom file in the root but I am pretty sure that it is not being maintained. other people here will be able to give you more detailed information, and they might actually update the pom file as well, but for now just use ant. just go to the root of the project and type ant ( assuming you have ant installed on your system.) 
                
> mvn compile fails on Centos6.3
> ------------------------------
>
>                 Key: NUTCH-1642
>                 URL: https://issues.apache.org/jira/browse/NUTCH-1642
>             Project: Nutch
>          Issue Type: Bug
>         Environment: Apache Maven 3.1.0 (893ca28a1da9d5f51ac03827af98bb730128f9f2; 2013-06-28 10:15:32+0800)
> Java version: 1.7.0_25, vendor: Oracle Corporation
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux", version: "2.6.32-279.el6.x86_64", arch: "amd64", family: "unix"
>            Reporter: Xibao.Lv
>         Attachments: NUTCH-1642.patch
>
>
> Hi,all
> I am new. when i run 'mvn compile', it return some errors.Like Follows.
> 1.[ERROR] Failed to execute goal on project nutch: Could not resolve dependencies for project org.apache.nutch:nutch:jar:2.2: The following artifacts could not be resolved: javax.jms:jms:jar:1.1, com.sun.jdmk:jmxtools:jar:1.2.1, com.sun.jmx:jmxri:jar:1.2.1, org.restlet.jse:org.restlet:jar:2.0.5, org.restlet.jse:org.restlet.ext.jackson:jar:2.0.5: Could not transfer artifact javax.jms:jms:jar:1.1 from/to java.net (https://maven-repository.dev.java.net/nonav/repository): No connector available to access repository java.net (https://maven-repository.dev.java.net/nonav/repository) of type legacy using the available factories WagonRepositoryConnectorFactory
> It means that the org.restlet.jse can not find in main repository. Then I add repository address to pom.xml
> 2.[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.jdom:jdom:jar -> duplicate declaration of version 1.1 @ line 268, column 29
> 3.[ERROR] Failed to execute goal on project nutch: Could not resolve dependencies for project org.apache.nutch:nutch:jar:2.2: The following artifacts could not be resolved: javax.jms:jms:jar:1.1, com.sun.jdmk:jmxtools:jar:1.2.1, com.sun.jmx:jmxri:jar:1.2.1: Could not transfer artifact javax.jms:jms:jar:1.1 from/to java.net (https://maven-repository.dev.java.net/nonav/repository): No connector available to access repository java.net (https://maven-repository.dev.java.net/nonav/repository) of type legacy using the available factories WagonRepositoryConnectorFactory
> It means that we can not find javax.jms in there(https://maven-repository.dev.java.net/nonav/repository). Google said log4j-1.2.15 dependency javax.jms, so we can use higher log4j, such as 1.2.16+.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira