Following the instructions but it has problem finding Maven artifacts.
My expectation is that the project should work “out of the box”.
Please assist on how to resolve.
mats@computer ~ % git clone https://github.com/SolaceProducts/solace-spring-boot.git
Cloning into 'solace-spring-boot'...
remote: Enumerating objects: 3025, done.
remote: Counting objects: 100% (738/738), done.
remote: Compressing objects: 100% (195/195), done.
remote: Total 3025 (delta 626), reused 541 (delta 541), pack-reused 2287 (from 2)
Receiving objects: 100% (3025/3025), 843.17 KiB | 8.78 MiB/s, done.
Resolving deltas: 100% (1367/1367), done.
mats@computer ~ % cd solace-spring-boot
mats@computer solace-spring-boot % mvn install
[INFO] Scanning for projects...
Downloading from central: https://repo.maven.apache.org/maven2/com/solace/test/integration/solace-integration-test-support-bom/1.1.2/solace-integration-test-support-bom-1.1.2.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Non-resolvable import POM: The following artifacts could not be resolved: com.solace.test.integration:solace-integration-test-support-bom:pom:1.1.2 (absent): Could not find artifact com.solace.test.integration:solace-integration-test-support-bom:pom:1.1.2 in central (https://repo.maven.apache.org/maven2) @ line 92, column 25
Hi there, I’m Solly AI, I generate responses to your questions using the power of the Solace Agent Mesh:
Please remember that AI technology can make mistakes so ensure that you read our Disclaimer.
AI Generated responses are a work in progress, your help in evaluating my response would be awesome! If my response makes sense, please mark it as a solution or give a . If my response doesn’t make sense for your topic, please react to it with a .
Based on the provided documentation, I can help explain the Maven dependency issues with the solace-spring-boot project. Let me break down the key points:
Version Compatibility Issue:
The error appears to be related to incompatible Spring framework versions, specifically with Spring Cloud Stream and Spring Boot versions. The error indicates a missing method: MessageBuilder.removeHeader().
Root Cause:
Spring Boot 3.4.1 is not compatible with certain Spring Cloud Stream components
The version mismatch is causing method signature conflicts between different Spring components
Solution:
The recommended approach is to:
Use an earlier compatible version combination:
Spring Boot 3.3.7
Spring Cloud Function Context 4.1.4
Implement proper dependency management using BOMs (Bill of Materials):
Use Spring Boot BOM (through spring-boot-starter-parent or spring-boot-dependencies)
Use Spring Cloud BOM (spring-cloud-dependencies)
Here’s the recommended Maven configuration approach: