You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Jeff Thomas (Jira)" <ji...@apache.org> on 2022/11/05 18:28:00 UTC

[jira] [Commented] (MNGSITE-453) POM plugin groupId default value is not (properly) documented

    [ https://issues.apache.org/jira/browse/MNGSITE-453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17629370#comment-17629370 ] 

Jeff Thomas commented on MNGSITE-453:
-------------------------------------

Just an FYI, probably related to this not being documented is the fact that the IntelliJ IDE doesn't recognize plugins with no explicit 'groupId'.

[https://youtrack.jetbrains.com/issue/IDEA-296976/Maven-plugin-version-not-detected-from-parent-pluginManagement-pom-inspection-error]

Affected are the 'project.build.plugins.plugin' and 'project.build.reporting.plugins.plugin'.

Consider also the behavior of the MavenXpp3Writer which suppresses the groupId if it matches the default. (mentioned in above IntelliJ ticket comments by me).

 

> POM plugin groupId default value is not (properly) documented
> -------------------------------------------------------------
>
>                 Key: MNGSITE-453
>                 URL: https://issues.apache.org/jira/browse/MNGSITE-453
>             Project: Maven Project Web Site
>          Issue Type: Bug
>            Reporter: Marcono1234
>            Priority: Minor
>
> As described in [this StackOverflow answer|https://stackoverflow.com/a/65533111] the {{groupId}} for {{plugin}} elements in the POM has a default value of {{org.apache.maven.pugins}}.
> However this does not seem to be documented. Even if it is the case that relying on it is discouraged, it should at least be documented so users which only see an {{artifactId}} for a plugin understand which {{groupId}} will be used.
> The fact that this is value is specified in the POM XSD file might not suffice; users will most likely have already invested a lot of time looking at the other Maven resources before looking at the XSD, or they won't think of looking at the XSD at all.
> Therefore it would be good to (at least) adjust the following two pages to mention this default {{groupId}}:
> - [POM Reference|https://maven.apache.org/pom.html#Plugins]
> - [Guide to Configuring Plug-ins|https://maven.apache.org/guides/mini/guide-configuring-plugins.html]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)