Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-806

tools.jar needs to be supported as a normal dependency

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0-beta-1
    • None
    • None
    • sun sdk

    Description

      Sun SDKs have a tools.jar that provides API for extending the Sun java tools. This includes APT and Javadoc. There is no mechanism in maven for loading in tools.jar as a dependency. It can be added to the classpath before maven is launched, or manually loaded into the local repository. However, neither of these solutions are very satisfactory.

      Could we have some smarts in the dependency loading that understands a magical jdk groupId that resolves to the current JDK being used for compilation? This would let JDK-dependent stuff be linked in. In the case of tools.jar, the dependency snippet would look something like this:

      <dependency>
      <groupId>sun.jdk</groupId>
      <artifactId>tools</artifactId>
      <type>jar</type>
      <scope>provided</scope>
      </dependency>

      Attachments

        Activity

          People

            jdcasey John Dennis Casey
            dozer Matthew Pocock
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: