fbacchella commented on PR #8096:
URL: https://github.com/apache/nifi/pull/8096#issuecomment-2217683759

   This is the wrong fix for the problem.
   
   The readme specify: 
   
       Minimum Requirements
   
         JDK 8 Update 251
         Apache Maven 3.6.0
   
   And the reference bug says:
   
        [ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile (default-compile) 
on project nifi-hl7-query-language: Compilation failure: Compilation failure:
        [ERROR] error: Source option 7 is no longer supported. Use 8 or later.
        [ERROR] error: Target option 7 is no longer supported. Use 8 or later.
   
   This happens when the variable `maven.compiler.source` and 
`maven.compiler.target` are not correctly propagated.
   
   Anyway those 2 variables are deprecated and `maven.compiler.release` should 
be used instead.
   
   And to be exhausted, the bug talk about a problem with 
`org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile`. But if I have 
a look at the plugin home page 
(https://maven.apache.org/plugins/maven-compiler-plugin/), for the latest 
version (3.13.0), it says:
   
        Also note that at present the default source setting is 1.8 and the 
default target setting is 1.8, independently of the JDK you run Maven with. You 
are highly encouraged to change these defaults by setting source and target as 
described in [Setting the -source and -target of the Java 
Compiler](https://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compiler-source-and-target.html).
   
   So a very simple and easy quick-fix would be to update the 
org.apache.maven.plugins:maven-compiler-plugin.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to