-
Notifications
You must be signed in to change notification settings - Fork 613
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding Spring Cloud Stream Version To Message Headers For Easier Debugging Of Issues #3027
Conversation
Hello @sobychacko. Why did you revert the relevant commit? What’s the issue? |
Hi @omercelikceng, On our CI environments, we were getting the following error.
Can you see why we got this error? Looks like you added that antrun plugin as part of this PR. |
Hello @sobychacko, I apologize for the issue you’ve encountered. I’ve investigated the problem, and it occurs when we build with the "docs" profile. In the "docs" profile, there are specific configurations defined for the maven-antrun-plugin in the spring-cloud-build project. The Spring Cloud Stream project declares the spring-cloud-build project as its parent POM. Along with my development, I’ve added custom configurations for the maven-antrun-plugin in the Spring Cloud Stream POM(spring-cloud-stream core). This is exactly where the issue arises. I haven’t been able to pinpoint the exact cause yet, but I will continue investigating and open a pull request once I have a solution. I don't know how, but it seems like it is failing to get the correct classpath.
|
@sobychacko , I reviewed the issue and considered various solutions, but I need your guidance. Currently, in the spring-cloud-build project, within the docs profile, there are configurations defined for maven-antrun-plugin in the dependencyManagement section. (https://github.com/spring-cloud/spring-cloud-build/blob/main/pom.xml) In my case, I used maven-antrun-plugin within spring-cloud-stream-core. Since spring-cloud-build is the parent POM for spring-cloud-stream, the phases specified in the docs profile of spring-cloud-build were triggered, leading to errors. Normally, this plugin was not executed. However, because I defined this plugin in the spring-cloud-stream-core POM, it caused all the phases defined in the parent POM(spring-cloud-build) to execute, leading to errors. Additionally, in the spring-cloud-stream project, the usage of maven-antrun-plugin within the docs profile has been disabled. (https://github.com/spring-cloud/spring-cloud-stream/blob/main/docs/pom.xml) My proposed solution is to set these phases to "none" in spring-cloud-stream-core to prevent the phases defined in spring-cloud-build from running. If this approach is acceptable to you, I will proceed with a pull request. My solution :
|
Hi, @sobychacko. Can you provide me with some feedback on this? I tested it and confirmed that it works. Should I open a pull request directly? |
Resolves #2814