Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion api/maven-api-model/src/main/mdo/maven.mdo
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,9 @@
interpreted rather than compiled).
The default value is {@code src/main/scripts}.

@deprecated Replaced by {@code <Source>} with {@code script} language.
@deprecated since 4.0.0.
Use {@code <source>} elements with {@code script} language
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it Source or source?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it should be lowercase <source>, matching the Maven POM XML element name.
The current wording intentionally uses <source> for that reason.
Please let me know if you’d like this phrasing adjusted further.

Copy link
Contributor

@desruisseaux desruisseaux Jan 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: {@code &lt;source&gt;} should be {@code <source>}. HTML character entities are automatically escaped when inside {@code} or {@literal}.

EDIT: Oups! Sorry, ignore that comment. I just saw that this is inside a .mdo file, not a .java file.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does mdo work here? Does it first copy this into a .java file?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes — the .mdo file is the source of truth.
During the build, Maven’s model generator processes the .mdo and generates the corresponding Java model classes and JavaDoc from it.

That’s why the XML escaping (e.g. <source>) is needed in the .mdo, even though the generated JavaDoc ends up with the correct <source> rendering.

to configure script sources.
</description>
<type>String</type>
<annotations>
Expand Down