Skip to content
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

Remove the notion of version from Packaging and deployment for CDI Full #549

Merged
merged 1 commit into from
Oct 27, 2021

Conversation

manovotn
Copy link
Contributor

@manovotn manovotn commented Oct 26, 2021

Earlier today me and @Ladicek discussed that there is a potential hole in between Lite and Full with regards to beans.xml.
You can have beans.xml that is not an empty file and declares the <beans> element but does not specify version and bean-discovery-mode.
Such archive would then end up with annotated discovery in Lite but with all in Full (due to not having a version).

This PR is a proposed fix for that.

@manovotn manovotn requested a review from Ladicek October 26, 2021 08:34
@Ladicek
Copy link
Contributor

Ladicek commented Oct 26, 2021

This is certainly a clean way to do it, though it obviously limits the number of existing bean archives that are portable to Lite even more. I'm like +0.5 to this.

@manovotn manovotn marked this pull request as draft October 26, 2021 14:16
@manovotn
Copy link
Contributor Author

Converted back to draft. In the meeting we have decided to do this differently.
We will instead remove the notion of absent version attribute from CDI.

I will rework this PR accordingly.

@manovotn manovotn force-pushed the fixBeansXmlDefinition branch from 0e44d54 to a8267ab Compare October 27, 2021 08:05
@manovotn manovotn marked this pull request as ready for review October 27, 2021 08:11
@manovotn manovotn force-pushed the fixBeansXmlDefinition branch from a8267ab to 485c6e7 Compare October 27, 2021 08:18
@manovotn manovotn changed the title Explicitly state that non-empty beans.xml in Lite needs to have versi… Remove the notion of version from Packaging and deployment for CDI Full Oct 27, 2021
@manovotn manovotn merged commit 9d69345 into jakartaee:master Oct 27, 2021
@manovotn manovotn deleted the fixBeansXmlDefinition branch October 27, 2021 08: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.

3 participants