Skip to content

switch from 4.0.0-beta-4 to 3.17.0 - #1209

Open
hboutemy wants to merge 1 commit into
masterfrom
master-4-to-3.17
Open

hboutemy wants to merge 1 commit into
masterfrom
master-4-to-3.17

Conversation

@hboutemy

Copy link
Copy Markdown
Member

see apache/maven-sources#57 (comment)

let's maintain only master that produces a Maven 3 plugin being able to generate both Maven 3 plugin descriptors and Maven 4 plugin descriptors

this acts also dropping maven-script and old-Maven 2-style javadoc annotations

@hboutemy

hboutemy commented Sep 23, 2026 •

Copy link
Copy Markdown
Member Author

need to check/clarify Maven 3 plugin.xml generation = https://maven.apache.org/ref/3.9.16/maven-plugin-api/plugin.html
vs Maven 4 one = https://maven.apache.org/ref/4.0.0-rc-6/api/maven-api-plugin/plugin.html
see also apache/maven#13253

key difference is not only the new fields in Maven 4 plugin descriptor, but renamings:

@slawekjaranowski

Copy link
Copy Markdown
Member

this acts also dropping maven-script and old-Maven 2-style javadoc annotations

so it will be a braking change

@slawekjaranowski

Copy link
Copy Markdown
Member

I have checked plugin descriptor generated on a few plugins 3.x - build used plugin-tools 3.9.16 and 4.0.0-beta-3
looks the same

@slawekjaranowski slawekjaranowski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We can try here it will be one less branch to maintain

@slawekjaranowski

Copy link
Copy Markdown
Member

Of course we need check commits to cherry-pick, one I remember:

@gnodet gnodet mentioned this pull request Oct 16, 2026

@gnodet-bot gnodet-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Three documentation issues in this version-switch PR.

1. Duplicate "Maven 3 Plugin API" link — src/site/markdown/index.md now lists [Maven 3 Plugin API](/ref/current/maven-plugin-api/) twice in the See Also section. The second entry appends ", with its plugin descriptor" as trailing text but does not actually link to the descriptor — both bullets point to the same URL. Suggest replacing the second entry with - [Maven 3 Plugin Descriptor](/ref/current/maven-plugin-api/plugin.html) to match the pattern used for Maven 4 on the next line.

2. Misleading Maven 4 link label — maven-plugin-tools-annotations/src/site/markdown/index.md adds:

Maven 4 [META-INF/maven/plugin.xml plugin descriptor](/ref/4-LATEST/api/maven-api-core/apidocs/org/apache/maven/api/plugin/annotations/package-summary.html)

The link text says "plugin descriptor" but the URL resolves to the annotation javadocs (package-summary.html), not a plugin descriptor schema. The correct target is likely /ref/4-LATEST/api/maven-api-plugin/plugin.html — consistent with the link on src/site/markdown/index.md line 70.

3. Stale javadoc groups — pom.xml has report groups for "Javadoc Tags Extractor + Taglets", "Beanshell Support", and "Apache Ant Support" that reference packages from the now-dropped maven-script and maven-plugin-tools-java modules. These groups will produce empty sections in javadoc reports. Also, .asf.yaml still says "produce Maven Plugins in scripting languages" — the scripting reference is now obsolete after maven-script is removed.

This review was generated by an AI agent, Hermès on behalf of @gnodet.

- [Maven Plugin API](/ref/current/maven-plugin-api/)
- [Maven 3 Plugin API](/ref/current/maven-plugin-api/)

- [Maven 3 Plugin API](/ref/current/maven-plugin-api/), with its plugin descriptor

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Duplicate link. Both this line and line 66 link to /ref/current/maven-plugin-api/. The trailing ", with its plugin descriptor" text is not a hyperlink — it should be a separate link to the descriptor page:

Suggested change
- [Maven 3 Plugin API](/ref/current/maven-plugin-api/), with its plugin descriptor
- [Maven 3 Plugin Descriptor](/ref/current/maven-plugin-api/plugin.html)

}
}
```

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Misleading link target. The link text says plugin descriptor but the URL points to the annotations javadocs (package-summary.html), not to a descriptor schema. Consistent with src/site/markdown/index.md, this should point to /ref/4-LATEST/api/maven-api-plugin/plugin.html:

Suggested change
- Maven 4 [META-INF/maven/plugin.xml plugin descriptor](/ref/4-LATEST/api/maven-api-plugin/plugin.html)

@slachiewicz slachiewicz added the dependencies Pull requests that update a dependency file label Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants