Skip to main content

[JIRA] Resolved: (HK2-21) hk2-maven-plugin appears to be incompatible with JDK7

  • From: Romain Grécourt (JIRA) <jira-no-reply@...>
  • To: issues@...
  • Subject: [JIRA] Resolved: (HK2-21) hk2-maven-plugin appears to be incompatible with JDK7
  • Date: Tue, 17 Apr 2012 13:39:34 +0000 (GMT+00:00)
  • Auto-submitted: auto-generated


     [ 
http://java.net/jira/browse/HK2-21?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Romain Grécourt resolved HK2-21.
--------------------------------

    Resolution: Fixed

this is fixed since version 1.6.18

> hk2-maven-plugin appears to be incompatible with JDK7
> -----------------------------------------------------
>
>                 Key: HK2-21
>                 URL: http://java.net/jira/browse/HK2-21
>             Project: hk2
>          Issue Type: Bug
>    Affects Versions: current
>            Reporter: Ryan Lubke
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://java.net/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[JIRA] Resolved: (HK2-21) hk2-maven-plugin appears to be incompatible with JDK7

JIRA 04/17/2012
 
 
Close
loading
Please Confirm
Close