This is an automated email from the ASF dual-hosted git repository. sjaranowski pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-apache-parent.git
The following commit(s) were added to refs/heads/master by this push: new 8b9fef5 [MPOM-480] Remove maven-site-plugin:attach-descriptor 8b9fef5 is described below commit 8b9fef52d0594090df17d4d006ae8e88c46d0064 Author: Slawomir Jaranowski <s.jaranow...@gmail.com> AuthorDate: Thu Apr 11 21:16:57 2024 +0200 [MPOM-480] Remove maven-site-plugin:attach-descriptor --- pom.xml | 12 ------------ src/site-docs/apt/index.apt.vm | 32 ++++++++++++++++++++++++++++++-- 2 files changed, 30 insertions(+), 14 deletions(-) diff --git a/pom.xml b/pom.xml index fd55d98..c12552f 100644 --- a/pom.xml +++ b/pom.xml @@ -404,18 +404,6 @@ under the License. </execution> </executions> </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-site-plugin</artifactId> - <executions> - <execution> - <id>attach-descriptor</id> - <goals> - <goal>attach-descriptor</goal> - </goals> - </execution> - </executions> - </plugin> </plugins> </build> diff --git a/src/site-docs/apt/index.apt.vm b/src/site-docs/apt/index.apt.vm index 9ecadd8..5576222 100644 --- a/src/site-docs/apt/index.apt.vm +++ b/src/site-docs/apt/index.apt.vm @@ -93,8 +93,6 @@ Apache Software Foundation Parent POM ** maven-remote-resources-plugin for {{{/apache-resource-bundles/jar/}org.apache.apache.resources:apache-jar-resource-bundle:$context.get("version.apache-resource-bundles")}}. - ** maven-site-plugin:attach-descriptor - ** maven-enforcer-plugin to check Maven and Java build prerequisites, configured via properties: *** <<<minimalMavenBuildVersion>>> property: default value is <<Maven $context.get("minimalMavenBuildVersion")>> @@ -168,3 +166,33 @@ Settings Configuration {{{https://www.apache.org/dev/publishing-maven-artifacts.html}Publishing Maven Artifacts}}. You can test your environment setup using <<<-Papache-release>>> with the command line. + +Notices + + * Since version <<32>> <<<maven-site-plugin:attach-descriptor>>> was removed from <<<plugins>>> section. + + Publishing a site descriptor is only needed in project parent poms, child projects not need publish it. + + When you need publish site descriptor in your project you should add, like: + ++------+ +<build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-site-plugin</artifactId> + <inherited>false</inherited> + <executions> + <execution> + <id>attach-descriptor</id> + <goals> + <goal>attach-descriptor</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> +</build> ++------+ + + []