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

Gabriele Kahlout edited comment on NUTCH-995 at 6/5/11 7:07 AM:
----------------------------------------------------------------

Sorry, to stick in the gullet but this doesn't quite work yet.
$ ant deploy (and release) work for me too, but the next command (the purpose 
of this from a non-committer prospective) $ mvn install fails.
{code}
$ mvn install
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Nutch 1.3
[INFO] ------------------------------------------------------------------------
Downloading: 
http://repo1.maven.org/maven2/com/sun/jdmk/jmxtools/1.2.1/jmxtools-1.2.1.jar
Downloading: 
http://repo1.maven.org/maven2/com/sun/jmx/jmxri/1.2.1/jmxri-1.2.1.jar
Downloading: http://repo1.maven.org/maven2/javax/jms/jms/1.1/jms-1.1.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8.127s
[INFO] Finished at: Sun Jun 05 08:44:38 CEST 2011
[INFO] Final Memory: 4M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project nutch: Could not resolve dependencies 
for project org.apache.nutch:nutch:jar:1.3: 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 -> [Help 1]
{code}

I've tried 'mvn dependency:get -DrepoUrl=http://download.java.net/maven/2/ 
-Dartifact=com.sun.jdmk:jmxtools' and even that doesn't get the dependency. 
[Looking it up in maven 
central|http://search.maven.org/#artifactdetails%7Ccom.sun.jdmk%7Cjmxtools%7C1.2.1%7Cjar]
 no jar is indeed distributed for the artifact.

The trouble comes from log4j dependency, which depends on those special jars, 
as shown in the dependency graph below:
!http://content.screencast.com/users/simpatico/folders/Jing/media/21de9493-fd87-45b6-9732-241583885b2f/00000046.png!


      was (Author: simpatico):
    Sorry, to stick in the gullet but this doesn't quite work yet.
$ ant deploy (and release) work for me too, but the next command (the purpose 
of this from a non-committer prospective) $ mvn install fails.
{code}
$ mvn install
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Nutch 1.3
[INFO] ------------------------------------------------------------------------
Downloading: 
http://repo1.maven.org/maven2/com/sun/jdmk/jmxtools/1.2.1/jmxtools-1.2.1.jar
Downloading: 
http://repo1.maven.org/maven2/com/sun/jmx/jmxri/1.2.1/jmxri-1.2.1.jar
Downloading: http://repo1.maven.org/maven2/javax/jms/jms/1.1/jms-1.1.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8.127s
[INFO] Finished at: Sun Jun 05 08:44:38 CEST 2011
[INFO] Final Memory: 4M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project nutch: Could not resolve dependencies 
for project org.apache.nutch:nutch:jar:1.3: 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 -> [Help 1]
{code}

I've tried 'mvn dependency:get -DrepoUrl=http://download.java.net/maven/2/ 
-Dartifact=com.sun.jdmk:jmxtools' and even that doesn't get the dependency. 
[Looking it up in maven 
central|http://search.maven.org/#artifactdetails%7Ccom.sun.jdmk%7Cjmxtools%7C1.2.1%7Cjar]
 no jar is indeed distributed for the artifact.

The trouble comes from log4j dependency, which depends on those special jars.

  
> Generate POM file using the Ivy makepom task 
> ---------------------------------------------
>
>                 Key: NUTCH-995
>                 URL: https://issues.apache.org/jira/browse/NUTCH-995
>             Project: Nutch
>          Issue Type: Improvement
>            Reporter: Julien Nioche
>            Assignee: Chris A. Mattmann
>             Fix For: 1.3
>
>         Attachments: NUTCH-955-1.3.patch, NUTCH-997.branch-1.3.v2.patch, 
> mvn-template-build.patch
>
>
> We currently have a pom.xml file in the SVN repository and use it for 
> publishing our artefacts. The trouble with this is that we need to keep its 
> content in sync with our ivy file. Instead we could use the makepom task 
> (http://ant.apache.org/ivy/history/2.2.0/use/makepom.html) to generate the 
> pom.xml automatically.
> The existing pom.xml for 1.3 needs fixing anyway as it declares dependencies 
> to GORA and has the wrong versions for some dependencies.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to