kafka-connect-storage-common icon indicating copy to clipboard operation
kafka-connect-storage-common copied to clipboard

Please don't use project.version for dependencies in parent pom

Open koertkuipers opened this issue 7 years ago • 0 comments

doing things like:

  <dependency>
                <groupId>io.confluent</groupId>
                <artifactId>kafka-connect-avro-converter</artifactId>
                <version>${project.version}</version>
</dependency>

can lead to really weird errors in projects that declare kafka-connect-storage-common-parent as the parent in the pom.

because project.version gets resolved to the version of the child project. for example i was working on my own version of kafka-connect-hdfs, so i changed the version in the pom, a reasonable enough thing to do, and suddenly it tried to download a whole buch of dependencies with the version specified by me, which makes no sense and will fail.

koertkuipers avatar May 26 '18 22:05 koertkuipers