Skip to content

Conversation

@WolfgangHG
Copy link
Contributor

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.

Copy link
Member

@jmesnil jmesnil left a 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>
Copy link

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.

Copy link
Contributor Author

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.

Copy link

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.

Copy link
Contributor Author

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.

Copy link

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.

@bstansberry bstansberry merged commit dbf0dd0 into wildfly:main Nov 19, 2025
1 check passed
@bstansberry
Copy link
Contributor

Thanks @WolfgangHG, @jmesnil and @jfdenise

@WolfgangHG WolfgangHG deleted the maven_update branch November 20, 2025 06:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error retrieving Galleon feature-packs in "getting started" archetype build

4 participants