-
-
Notifications
You must be signed in to change notification settings - Fork 44
Set maven update policy to 'daily' for Glow provisioning updates #192
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
Conversation
jmesnil
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
| <releases> | ||
| <enabled>true</enabled> | ||
| <updatePolicy>never</updatePolicy> | ||
| <updatePolicy>daily</updatePolicy> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Daily, not sure, why not always? You can still miss some update if you are unlucky.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jfdenise
As far as I understand, this situation can only happen if I run a maven build on a project using Glow provisioning - maven checks for updates and finds nothing new. The same day a new feature pack is released and a new WildFly release is done, and the user immediately wants to switch to this new WildFly release. This would fail because the local maven cache still contains an older version.
Is this correct?
I picked "daily" because it is the maven default. I don't know how much performance impact a "always" update policy would have, but it could probably slow down build time a bit, dependending on internet speed.
If my understanding of the possible provisioning problem is true, my opinion is that this is a quite rare condition and not worth the impact on build time etc.. But you are the pros with more detailed insight - if you consider "daily" or "once per hour" better, I will change it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If daily is the default, why we would set it? I think that always is ok, you could add a comment saying why we set it so.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jfdenise I changed the updatePolicy to always - but only for the regular repository, not for the plugin repos.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The plugin repo is not in use when resolving the WildFly Glow metadata.
|
Thanks @WolfgangHG, @jmesnil and @jfdenise |
This fixes #191: Glow provisioning cannot download updated featurepacks if the project created from the archetype is updated to a newer WildFly version.
Reason: all maven repositories are defined with
updatePolicy = never.The pull request is larger than necessary - I aligned the definition of maven central and JBoss repositories and also disabled all snapshot repositories.