Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-17431

build: Java target and source leaking from Apache parent pom

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.15.0
    • build system
    • None
    • Unknown

    Description

      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 (or problematic if, somehow, the maven compiler plugin options are overridden).

       

       

       

       

      Attachments

        Issue Links

          Activity

            People

              orpiske Otavio Rodolfo Piske
              orpiske Otavio Rodolfo Piske
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: