Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-3895

Compilation with Java 1.6.0_65 fails

    Details

      Description

      I'm trying to follow the 'Getting started with Infinispan' as published here:
      http://infinispan.org/docs/6.0.x/getting_started/getting_started.html

      There, it is specified: "A Java 6.0 JDK"

      Compiling INFINISPAN-7.0.0-SNAPSHOT with Maven 3.1.1 and java version "1.6.0_65, the maven-enforcer-plugin complains:

      [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-enforcer-plugin:1.0:enforce' with basic configurator -->
      [DEBUG] (s) fail = true
      [DEBUG] (s) failFast = false
      [DEBUG] (f) ignoreCache = false
      [DEBUG] (s) project = MavenProject: org.infinispan:infinispan-parent:7.0.0-SNAPSHOT @ /Users/veleno/workspace-git/infinispan/parent/pom.xml
      [DEBUG] (s) version = [1.7,)
      [DEBUG] (s) version = [3.0.3,)
      [DEBUG] (s) rules = [org.apache.maven.plugins.enforcer.RequireJavaVersion@15194a34, org.apache.maven.plugins.enforcer.RequireMavenVersion@2f56a6be]
      [DEBUG] (s) session = org.apache.maven.execution.MavenSession@7b681460
      [DEBUG] (s) skip = false
      [DEBUG] – end configuration –
      [DEBUG] Executing rule: org.apache.maven.plugins.enforcer.RequireJavaVersion
      [DEBUG] Rule org.apache.maven.plugins.enforcer.RequireJavaVersion is cacheable.
      [DEBUG] Detected Java String: 1.6.0_65
      [DEBUG] Normalized Java String: 1.6.0-65
      [DEBUG] Parsed Version: Major: 1 Minor: 6 Incremental: 0 Build: 65 Qualifier: null
      [DEBUG] Adding failure due to exception
      org.apache.maven.enforcer.rule.api.EnforcerRuleException: Detected JDK Version: 1.6.0-65 is not in the allowed range [1.7,).
      at org.apache.maven.plugins.enforcer.AbstractVersionEnforcer.enforceVersion(AbstractVersionEnforcer.java:101)
      at org.apache.maven.plugins.enforcer.RequireJavaVersion.execute(RequireJavaVersion.java:65)
      at org.apache.maven.plugins.enforcer.EnforceMojo.execute(EnforceMojo.java:186)
      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
      at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
      at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
      at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
      at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
      at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)

      $java -version:
      java version "1.6.0_65"
      Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
      Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                NadirX Tristan Tarrant
                Reporter:
                vschiavoni Valerio Schiavoni
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: