-
Notifications
You must be signed in to change notification settings - Fork 10
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
How to manage snapshot dependencies? #43
Comments
Hi! Some kind of configuration option to give the behavior that you want seems reasonable. It is probably best to implement it in the same way as useMyVersionFor so that you can have different behavior on different artifacts. Probably not a very common use case that you would want to have different behavior but adding a global option first and then add support for different behavior later would make it messy. I am not really sure how to repeat it locally and add a test case for it. |
Sorry for answering so late, I've been on another task this past month. When you say "Probably not a very common use case" I'm wondering if I explained correctly, since to me this is a very common use case (but I may be wrong of course ;-). Let's say I'm developing an application with several Maven JAR projects, e.g.
This is working locally because On my CI, I'd like to do this:
There is no more |
Sorry for being unclear. What I meant was that having timestamped versions for some artifacts and snapshot version for some in the same project is uncommon. Having timestamp versions for all snapshot artifacts is, as you say, pretty common. Maybe it would make sense to implement something like |
The "same application" dependencies are all declared in the POM as I also think that |
allowTimestampedSnapshots is perhaps a better name right? Since sometimes it might actually be 0-SNAPSHOT if you have built the artifacts locally. |
Sorry for late reply. |
Hi, have you been able to make some progress on this one? |
It was a bit more tricky to implement than I thought initially. |
I have been thinking a bit more now and it would probably be better to do something like: <dependencySet>
<ignoreVersion>true</ignoreVersion>
<ignoreIntegrity>true</ignoreIntegrity>
<includes>
<include>com.mycompany.something</include>
...
</includes>
</dependencySet> That way you could configure it to only ignore the version and possibly the integrity if applicable. |
I wasn't aware that the plugin was checking integrity too ;-) I'm using it only to notice dependencies change. So your last proposal fits me quite well too. |
It isn't checking integrity yet, but it is a feature that I am working on that it will be possible to enable :) |
Fixed in master branch. |
Hi,
Is there a way to not lock the SNAPHOT dependencies, i.e. keep
-SNAPHOT
instead of-SNAPHOT-<timestamp>
? I know this defeats the whole purpose of the plugin, but how do you cope with the development version of a Java project?Thanks
The text was updated successfully, but these errors were encountered: