Apparently that Maven FAQ entry is not always valid.


Chris Hilton wrote:
The entry for this in the Maven FAQ does exactly that (though it does recommend the '..' use). http://maven.apache.org/general.html#tools-jar-dependency Chris

    ------------------------------------------------------------------------
    *From:* Matt Brozowski [mailto:[EMAIL PROTECTED]
    *Sent:* Thursday, 22 February, 2007 11:27
    *To:* [email protected]
    *Subject:* Re: [m2eclipse-user] Won't compile because of
    transitive dependency not finding its artifact


    On Feb 22, 2007, at 12:13 PM, Eugene Kuleshov wrote:


     BTW, it is a bad practice to use "..' reference from JRE,
    because tools.jar is actually part of JDK, but JRE not
    necessarily mean that you have JDK around. So, I' would suggest
    to set JAVA_HOME to the proper JDK and use
    {$java.home}/lib/tools.jar path instead.

     Anyways, please consider to contribute to the project FAQ at
    http://docs.codehaus.org/display/M2ECLIPSE/Project+FAQ

    Even that's a bad idea because not all JDKs provide a tools.jar...
    for example the Mac OSX JDK  bundles the tools.jar code into the
    classes.jar

    You'll need a profile for it at least.

    Matt
    ___________________________________________________________________________
    Matt Brozowski, OpenNMS Maintainer Main: +1 919 812 4984
    The OpenNMS Group, Inc. Fax: +1 503 961 7746
    Email: [EMAIL PROTECTED] URL: http://www.opennms.com




---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to