hk2
  1. hk2
  2. HK2-17

auto-depends-plugin is not compatible with Java 7

    Details

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

      Java 7 (b135)
      Windows 7

      Description

      Compiling a hk2-jar project fails on Java 7 complaining that com.sun.mirror.apt.AnnotationProcessorFactory cannot be loaded by Maven.
      Tracking down the issue shows a
      <profiles>
      <profile>
      <!-- This is only for non MAC OS X builds, hence the property below -->
      <id>default-tools.jar</id>
      <activation>
      <property>
      <name>java.vendor</name>
      <value>Oracle Corporation</value><!-Sun Microsystems Inc.</value>->
      </property>
      </activation>
      <dependencies>
      <dependency>
      <groupId>com.sun</groupId>
      <artifactId>tools</artifactId>
      <version>1.4.2</version>
      <scope>system</scope>
      <systemPath>$

      {java.home}

      /../lib/tools.jar</systemPath>
      </dependency>
      </dependencies>
      </profile>
      </profiles>
      block in
      <artifactId>auto-depends-plugin</artifactId> [apt]

      Changing the value to Oracle Corporation allows to compile again.

        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:
            lhochet
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: