hk2
  1. hk2
  2. HK2-21

hk2-maven-plugin appears to be incompatible with JDK7

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.*
    • Fix Version/s: 1.*
    • Component/s: None
    • Labels:
      None

      Description

      Failure:

      [INFO] Internal error in the plugin manager executing goal 'org.glassfish.hk2:hk2-maven-plugin:1.6.11:hk2-compile': Unable to load the mojo 'org.glassfish.hk2:hk2-maven-plugin:1.6.11:hk2-compile' in the plugin 'org.glassfish.hk2:hk2-maven-plugin'. A required class is missing: com/sun/mirror/apt/AnnotationProcessorFactory
      com.sun.mirror.apt.AnnotationProcessorFactory

      This can be worked around by adding the following dependency to the plugin definition in the pom:

      <dependency>
      <groupId>com.sun</groupId>
      <artifactId>tools</artifactId>
      <version>1.7.0</version>
      <scope>system</scope>
      <systemPath>$

      {java.home}

      /../lib/tools.jar</systemPath>
      </dependency>

      Once added, the project once again compiles, however the following warnings is printed:

      warning: The apt tool and its associated API are planned to be
      removed in the next major JDK release. These features have been
      superseded by javac and the standardized annotation processing API,
      javax.annotation.processing and javax.lang.model. Users are
      recommended to migrate to the annotation processing features of
      javac; see the javac man page for more information.

        Activity

        Hide
        Romain Grécourt added a comment -

        this is fixed since version 1.6.18

        Show
        Romain Grécourt added a comment - this is fixed since version 1.6.18

          People

          • Assignee:
            Unassigned
            Reporter:
            Ryan Lubke
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: