Ensure dependency declarations in build configuration files use concrete values rather than variables that may not resolve properly at build time. Maintain consistency between related configuration files (like BOM and aggregator POMs) to prevent build failures.
Ensure dependency declarations in build configuration files use concrete values rather than variables that may not resolve properly at build time. Maintain consistency between related configuration files (like BOM and aggregator POMs) to prevent build failures.
When declaring dependencies in Maven POM files:
${os.detected.classifier}
)requireSameVersions
rule for critical dependenciesExample of problematic configuration:
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>${tcnative.artifactId}</artifactId>
<classifier>${tcnative.classifier}</classifier>
</dependency>
This can result in errors like:
Could not find netty-tcnative-2.0.70.Final-${os.detected.classifier}.jar
Instead, use concrete values or handle platform-specific dependencies using proper Maven features like profiles or separate platform-specific modules.
Enter the URL of a public GitHub repository