GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Remove redundant required attributes from Maven model by slawekjaranowski · Pull Request #11985 · apache/maven

Conversation

@slawekjaranowski

@slawekjaranowski slawekjaranowski commented Apr 24, 2026

Copy link
Copy Markdown
Member

After the fix in the modello plugin required fields are propagated to documentation and xsd.

We should remove reduntant one which is not effectively required.

Also add additional test for validator.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@slawekjaranowski
Remove redundant required attributes from Maven model
0190dc2
After the fix in the modello plugin required fields are propagated to documentation and xsd.

We should remove reduntant one which is not effectively required.

Also add additional test for validator.
This was referenced Apr 24, 2026
Required model fields vs validation #11979
Closed
Update Maven 3 xsd to reflect required elements apache/maven-site#1564
Closed
@slawekjaranowski
slawekjaranowski requested review from cstamas, gnodet, hboutemy and slachiewicz April 24, 2026 18:52
@slawekjaranowski
Remove redundant required attributes from sourceDirectory, scriptSour…
ca9168d
…ceDirectory
@slawekjaranowski slawekjaranowski added this to the 3.10.0 milestone Apr 26, 2026
@slawekjaranowski
Remove redundant required attributes from profile.id
ad2f354
we have a default value
@slawekjaranowski slawekjaranowski self-assigned this Apr 28, 2026
@slawekjaranowski slawekjaranowski mentioned this pull request Apr 28, 2026
Update Maven 4 XSD files to reflect required fields apache/maven-site#1571
Closed
cstamas
cstamas approved these changes Apr 29, 2026
View reviewed changes
@slawekjaranowski slawekjaranowski added the bug Something isn't working label Apr 29, 2026
@slawekjaranowski
slawekjaranowski merged commit 33720e7 into apache:maven-3.10.x Apr 29, 2026
18 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@slawekjaranowski
slawekjaranowski deleted the model-required branch April 29, 2026 21:17
This was referenced Jun 23, 2026
Forward-port #11985: remove redundant required MDO attrs + add extension coordinate validation (#11979) #12346
Merged
Forward-port #11985: remove redundant required MDO attrs (#11979) #12347
Merged
gnodet added a commit that referenced this pull request Jun 25, 2026
@gnodet @claude
Forward-port #11985: remove redundant required MDO attrs (#11979) (#1…
a1b9f09
…2347)

* Forward-port #11985: remove redundant required MDO attrs (#11979)

Remove <required>true</required> from 13 metadata/defaulted fields in maven.mdo
(forward-port of PR #11985 from maven-3.10.x).
Update Model.name description to document artifactId fallback.
Add minimal POM validation tests.

* Address Copilot review comments

- Fix <name> field description in maven.mdo to not claim the model field
  defaults to artifactId (the fallback is a runtime behavior in
  MavenProject#getName(), not a model-level default)
- Remove unused test POM resources minimal-with-parent.xml and
  minimal-without-parent.xml from impl/maven-impl (only referenced in
  compat/maven-model-builder tests which have their own copies)

Co-Authored-By: Claude Opus 4.6 <[email protected]>

---------

Co-authored-by: Claude Opus 4.6 <[email protected]>
gnodet added a commit that referenced this pull request Jun 25, 2026
@gnodet @claude
Forward-port #11985: remove redundant required MDO attrs + add extens…
99a624d
…ion coordinate validation (#11979) (#12346)

* Forward-port #11985: remove redundant required MDO attrs + add extension coordinate validation (#11979)

- Remove <required>true</required> from 13 metadata/defaulted fields in maven.mdo
  (forward-port of PR #11985 from maven-3.10.x)
- Update Model.name description to document artifactId fallback
- Add WARNING-level validation for missing extension groupId/artifactId
- Add unit tests for extension coordinate validation and minimal POM validation

* Address Copilot review comments (port from #12347)

- Fix <name> field description in maven.mdo to not claim the model field
  defaults to artifactId (the fallback is a runtime behavior in
  MavenProject#getName(), not a model-level default)

Note: unlike the 4.0.x branch, the test POM resources minimal-with-parent.xml
and minimal-without-parent.xml are actually referenced by tests in
impl/maven-impl on master, so they are kept.

Co-Authored-By: Claude Opus 4.6 <[email protected]>

---------

Co-authored-by: Claude Opus 4.6 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@cstamas cstamas cstamas approved these changes
@gnodet gnodet Awaiting requested review from gnodet
@hboutemy hboutemy Awaiting requested review from hboutemy
@slachiewicz slachiewicz Awaiting requested review from slachiewicz

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@slawekjaranowski slawekjaranowski

Labels

bug Something isn't working

Projects

None yet

Milestone

3.10.0-rc-1

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@slawekjaranowski @cstamas
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.