You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Steve Wong (Jira)" <ji...@apache.org> on 2020/11/15 17:25:00 UTC
[jira] [Comment Edited] (MNGSITE-431) pluginManagement in profiles
undocumented for maven 3.x
[ https://issues.apache.org/jira/browse/MNGSITE-431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17232357#comment-17232357 ]
Steve Wong edited comment on MNGSITE-431 at 11/15/20, 5:24 PM:
---------------------------------------------------------------
Thanks for the confirmation, there was a slight worry about deprecation.
Perhaps I should have said "undocumented", i.e. with air-quotes instead?
At any rate, I have submitted a PR with the suggested edits:
[https://github.com/apache/maven-site/pull/214]
was (Author: ninj):
Thanks for the confirmation, there was a slight worry about deprecation.
Perhaps I should have said "undocumented", i.e. with air-quotes instead?
At any rate, I have submitted a PR with the suggested edits:
[https://github.com/apache/maven-site/pull/214]
> pluginManagement in profiles undocumented for maven 3.x
> -------------------------------------------------------
>
> Key: MNGSITE-431
> URL: https://issues.apache.org/jira/browse/MNGSITE-431
> Project: Maven Project Web Site
> Issue Type: Improvement
> Reporter: Steve Wong
> Priority: Minor
>
> I was surprised to find that specifying a pluginManagement element in a profile works, because this is not listed in the maven 3.x documentation page: [https://maven.apache.org/guides/introduction/introduction-to-profiles.html]
> {quote} * a subset of the {{<build>}} element, which consists of:
> ** {{<defaultGoal>}}
> ** {{<resources>}}
> ** {{<testResources>}}
> ** {{<finalName>}}{quote}
> With a bit of googling, I came across the docs for maven2, which does allow it: [https://cwiki.apache.org/confluence/display/MAVENOLD/Build+Profiles]
> {quote}{{build}} _({{pom.xml}})_
> * {{plugins}}
> * {{pluginManagement}}{quote}
> and the 3.6.3 model reference allows it: [https://maven.apache.org/ref/3.6.3/maven-model/maven.html]
> {quote}line 378: <profiles>
> line 379: <profile>
> line 399: <build>
> line 422: <pluginManagement>
> {quote}
> Is the undocumented behaviour correct, or should this functionality be avoided?
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)