Uploaded image for project: 'Debezium'
  1. Debezium
  2. DBZ-5640

Literal "${project.version}" in the source record instead of the actual version

    XMLWordPrintable

Details

    • False
    • None
    • False

    Description

      Bug report

      In the emitted source record, the literal "${project.version}" is presented instead of the actual version (e.g. "2.0.0")

      What behaviour do you expect?

      "payload":{"ts_ms":1663766313364,"op":"i","source":{"version":"2.0.0","connector":"cassandra"...

      What behaviour do you see?

      "payload":{"ts_ms":1663766313364,"op":"i","source":{"version":"${project.version}","connector":"cassandra"...

      Cause:

      The resources files are not processed at build time for the debezium-connector-cassandra-core artifact and so the "debezium-connector-cassandra\core\src\main\resources\io\debezium\connector\cassandra\build.version" is not updated.

      Fix:

      Enable resource filtering in the pom.xml of debezium-connector-reactor-cassandra and remove it from all the submodules since all will inherit it.

          <build>
              <resources>
                  <!-- Apply the properties set in the POM to the resource files -->
                  <resource>
                      <filtering>true</filtering>
                      <directory>src/main/resources</directory>
                      <includes>
                          <include>*</include>
                          <include>*/</include>
                      </includes>
                  </resource>
              </resources>
              <testResources>
                  <testResource>
                      <directory>src/test/resources</directory>
                      <filtering>true</filtering>
                      <includes>
                          <include>*</include>
                          <include>*/</include>
                      </includes>
                  </testResource>
              </testResources>

      Attachments

        Activity

          People

            Unassigned Unassigned
            ggaborg Gabor Andras (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: