Hi Trung,

Unfortunately there is a known issue [1] with the Ivy makepom task that we use 
to 
generate the Maven poms from the Nutch Ivy/Ant artifacts. In Ivy trunk, 
IVY-1294 [2]
was fixed that should deal with this.

Until then you'll need the following custom exclusions in your Nutch pom:

            <dependency>
                <groupId>log4j</groupId>
                <artifactId>log4j</artifactId>
                <version>${log4j.version}</version>
                <exclusions>
                    <exclusion>
                        <groupId>com.sun.jdmk</groupId>
                        <artifactId>jmxtools</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>com.sun.jmx</groupId>
                        <artifactId>jmxri</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>

As soon as we upgrade to the next release of Ivy that includes [2], we 
can hopefully get rid of this issue.

Thanks!

Cheers,
Chris

[1] http://old.nabble.com/makepom-and-%3Cexclusions%3E-tag-td31661179.html
[2] https://issues.apache.org/jira/browse/IVY-1294

On Jul 10, 2011, at 12:27 AM, Trung Nguyen wrote:

> Hello everyone,
> 
> I am new to Nutch. I downloaded Nutch 1.3 yesterday and tried to compile it
> with Netbeans but I got the following 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: com.sun.jdmk:jmxtools:jar:1.2.1, com.sun.jmx:jmxri:jar:1.2.1:
> Failure to find com.sun.jdmk:jmxtools:jar:1.2.1 in
> http://repository.jboss.org/nexus/content/groups/public-jboss/ was cached in
> the local repository, resolution will not be reattempted until the update
> interval of repository.jboss.org has elapsed or updates are forced -> [Help
> 1]
> 
> I searched on Internet and it seems that these artifacts are not available
> from the central Maven repository, due to licensing issues. Do you have any
> idea to fix it?
> 
> Thanks in advance.
> Trung


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Chris Mattmann, Ph.D.
Senior Computer Scientist
NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA
Office: 171-266B, Mailstop: 171-246
Email: [email protected]
WWW:   http://sunset.usc.edu/~mattmann/
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Adjunct Assistant Professor, Computer Science Department
University of Southern California, Los Angeles, CA 90089 USA
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Reply via email to