You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Otavio Rodolfo Piske (Jira)" <ji...@apache.org> on 2022/01/04 16:52:00 UTC

[jira] [Created] (CAMEL-17431) build: Java compiler / source may be not set in some modules

Otavio Rodolfo Piske created CAMEL-17431:
--------------------------------------------

             Summary: build: Java compiler / source may be not set in some modules
                 Key: CAMEL-17431
                 URL: https://issues.apache.org/jira/browse/CAMEL-17431
             Project: Camel
          Issue Type: Bug
          Components: build system
            Reporter: Otavio Rodolfo Piske


If any module does not override the source and target version defined by maven compiler plugin, it seems to default to Java 7 since it inherits it from the Apache parent pom.

 

For example, looking at the effective pom for camel-kafka we can see that:

 

<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>

This is not a problem in this case, because its hierarchy does override the source and target options at the camel-parent. However, this may be confusing when analyzing the effective pom.

 

 

 

 



--
This message was sent by Atlassian Jira
(v8.20.1#820001)