Uploaded image for project: 'ShrinkWrap Resolvers'
  1. ShrinkWrap Resolvers
  2. SHRINKRES-313

<maven.compiler.release> property not taken into account

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • 3.2.0
    • maven
    • None

      When pom.xml contains <maven.compiler.release> property, shrinkwrap doesn't pick it up, and the default Java 5 compiler version is used.

      <maven.compiler.source> and <maven.compiler.target> are being picked up, but they are deprecated as of later Java releases.

      Please updated Shirkwrap to use <maven.compiler.release> to determine Java version.

      Caused by: org.jboss.shrinkwrap.resolver.api.maven.archive.importer.MavenImporterException: Unable to compile sources at /Users/lprimak/Documents/dev/flowlogix/jakarta-ee/jee-examples/src/main/java due to following reason(s): bootstrap class path not set in conjunction with -source 5, Source option 5 is no longer supported. Use 8 or later., Target option 5 is no longer supported. Use 8 or later.
      	at org.jboss.shrinkwrap.resolver.impl.maven.archive.packaging.AbstractCompilingProcessor.constructCompilationException(AbstractCompilingProcessor.java:145)
      	at org.jboss.shrinkwrap.resolver.impl.maven.archive.packaging.AbstractCompilingProcessor.compile(AbstractCompilingProcessor.java:106)
      	at org.jboss.shrinkwrap.resolver.impl.maven.archive.packaging.WarPackagingProcessor.importBuildOutput(WarPackagingProcessor.java:87)
      	at org.jboss.shrinkwrap.resolver.impl.maven.archive.packaging.WarPackagingProcessor.importBuildOutput(WarPackagingProcessor.java:51)
      	at org.jboss.shrinkwrap.resolver.impl.maven.archive.importer.PomEquippedMavenImporterImpl.importBuildOutput(PomEquippedMavenImporterImpl.java:49)
      	at org.jboss.shrinkwrap.resolver.impl.maven.archive.importer.PomEquippedMavenImporterImpl.importBuildOutput(PomEquippedMavenImporterImpl.java:44)
      	at com.flowlogix.examples.ExceptionPageIT.createDeploymentDev(ExceptionPageIT.java:203)
      	at com.flowlogix.examples.Deployments.createDeployment(Deployments.java:33)
      	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      	... 82 more
       

              pberan@redhat.com Petr Beran
              lprimak_rh Lenny Primak (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: