You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature: Allow to update non-snapshot bundles via bundle:watch #2141
Why not using bundle:update with release version ? A released artifact is changing with its version (from 1.0.0 to 1.1.0 for instance). The purpose of bundle:watch is to watch the file change without version change (SNAPSHOT).
So I guess your use case is to automatically update bundle when you bump a version ? What would be the trigger ?
I did not clearly describe the use case, let me elaborate:
Usually, during development, I change a bundles version to let's say 1.5.0-SNAPSHOT. Once I made some changes, I install it to my local repository and it gets updated in my locally running development application (using bundle:watch *), where I test and verify the changes.
Basically, that's my development cycle. It works very well.
Before last week, I didn't even know, that the bundle:watch command only updates snapshot bundles.
I made some changes in a bundle (let's say version 1.1.0) and installed it to my local repository (overwriting the existing 1.1.0). I know it's bad practice and a release version should not change.
I then looked into several things, like my Maven configuration and a couple other, because I was wondering, why the bundle did not update.
It was then, that I discovered, that it only updates snapshot bundles automatically.
I solved my issue by temporarily changing the bundles version to a snapshot for local development and then changing it to a release once I was done (like I should have from the start).
So I guess my point is:
Although it's bad practice to make changes in the release version of a bundle, would there be any harm with allowing auto updates in this case?
Basically, I see this feature request as a nice to have, even though it's technically based on bad practice (but would not cause any harm, I guess ^^).
I hope I could get my point across, as English is not my native language.
Ah, I see. bundle:watch is there primarily for SNAPSHOT during dev cycle.
I understand your use case. I'm not a big fan to automatically update released versions.
Also, should we consider any version, or range, or file modification date ? SNAPSHOT is easy because we have the modification time in the metadata.
I'm not against the use case, but I have to think more what's the best way to do it.
Thank you for investing time in this issue; I really appreciate it.
These are my thoughts after reflecting on it:
In some edge cases, you might not be able to change the version of a bundle - only the source code. For example, another bundle you have no control over might require a specific version. Even in those cases, you could still use bundle:update to update it manually, right?
You could also create a custom bundle that provides the capability to watch specific release bundles, if you really need it.
My motivation for creating this issue came from frustration, because I was not aware that only snapshot bundles are watched. That’s on me, though, since it is documented in the user guide and in the command description.
I still think there’s no problem with adding an option for this, but I also reckon there are far more important issues.
I would gladly assist if you decide to pursue this issue further, but I’m totally fine with closing it.
Activity
jbonofre commentedon Nov 12, 2025
Why not using
bundle:updatewith release version ? A released artifact is changing with its version (from 1.0.0 to 1.1.0 for instance). The purpose ofbundle:watchis to watch the file change without version change (SNAPSHOT).So I guess your use case is to automatically update bundle when you bump a version ? What would be the trigger ?
rwgaj commentedon Nov 12, 2025
I did not clearly describe the use case, let me elaborate:
Usually, during development, I change a bundles version to let's say
1.5.0-SNAPSHOT. Once I made some changes, I install it to my local repository and it gets updated in my locally running development application (usingbundle:watch *), where I test and verify the changes.Basically, that's my development cycle. It works very well.
Before last week, I didn't even know, that the
bundle:watchcommand only updates snapshot bundles.I made some changes in a bundle (let's say version
1.1.0) and installed it to my local repository (overwriting the existing1.1.0). I know it's bad practice and a release version should not change.I then looked into several things, like my Maven configuration and a couple other, because I was wondering, why the bundle did not update.
It was then, that I discovered, that it only updates snapshot bundles automatically.
I solved my issue by temporarily changing the bundles version to a snapshot for local development and then changing it to a release once I was done (like I should have from the start).
So I guess my point is:
Although it's bad practice to make changes in the release version of a bundle, would there be any harm with allowing auto updates in this case?
Basically, I see this feature request as a nice to have, even though it's technically based on bad practice (but would not cause any harm, I guess ^^).
I hope I could get my point across, as English is not my native language.
jbonofre commentedon Jan 25, 2026
Ah, I see.
bundle:watchis there primarily forSNAPSHOTduring dev cycle.I understand your use case. I'm not a big fan to automatically update released versions.
Also, should we consider any version, or range, or file modification date ? SNAPSHOT is easy because we have the modification time in the metadata.
I'm not against the use case, but I have to think more what's the best way to do it.
rwgaj commentedon Jan 27, 2026
Hello JB,
Thank you for investing time in this issue; I really appreciate it.
These are my thoughts after reflecting on it:
In some edge cases, you might not be able to change the version of a bundle - only the source code. For example, another bundle you have no control over might require a specific version. Even in those cases, you could still use
bundle:updateto update it manually, right?You could also create a custom bundle that provides the capability to watch specific release bundles, if you really need it.
My motivation for creating this issue came from frustration, because I was not aware that only snapshot bundles are watched. That’s on me, though, since it is documented in the user guide and in the command description.
I still think there’s no problem with adding an option for this, but I also reckon there are far more important issues.
I would gladly assist if you decide to pursue this issue further, but I’m totally fine with closing it.
Thanks again 🙂