Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-3738

Maven builds: don't specify eventspy when JDK < 1.7

    XMLWordPrintableJSON

Details

    Description

      The eventspy is compiled with JDK 1.7. However, for some legacy project, I need to build with Maven 3.2.5 and JDK 1.6 So this doesn't work (see below). NetBeans shouldn't specify the eventspy on the commandline if the JDK < 1.7

      Error injecting: org.netbeans.modules.maven.event.NbEventSpy
      java.lang.TypeNotPresentException: Type org.netbeans.modules.maven.event.NbEventSpy not present
      	at org.eclipse.sisu.space.URLClassSpace.loadClass(URLClassSpace.java:115)
      <snip>
      	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
      Caused by: java.lang.UnsupportedClassVersionError: org/netbeans/modules/maven/event/NbEventSpy : Unsupported major.minor version 51.0
      	at java.lang.ClassLoader.defineClass1(Native Method)
      <snip>
      	at org.eclipse.sisu.space.URLClassSpace.loadClass(URLClassSpace.java:107)
      	... 65 more
      Error executing Maven.
      com.google.inject.ProvisionException: Unable to provision, see the following errors:
      <snip>
      

      Attachments

        Issue Links

          Activity

            People

              skygo Eric Barboni
              anthonyv.be Anthony Vanelverdinghe
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m