Handle <p> in Maven Plugin Reference documentation

See gh-43622
This commit is contained in:
Tran Ngoc Nhan 2024-12-28 00:46:36 +07:00 committed by Stéphane Nicoll
parent 12e753c197
commit 334cd36b0a
2 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2023 the original author or authors.
* Copyright 2012-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -118,6 +118,7 @@ class PluginXmlParser {
.replace("<br>", " ")
.replace("\n", " ")
.replace("&quot;", "\"")
.replace("<p>", " ")
.replaceAll("\\{@code (.*?)}", "`$1`")
.replaceAll("\\{@link (.*?)}", "`$1`")
.replaceAll("\\{@literal (.*?)}", "`$1`")

View File

@ -168,7 +168,7 @@ The following configuration installs/deploys a single `task` classified artifact
include::example$packaging/classified-artifact-pom.xml[tags=classified-artifact]
----
As both the `maven-jar-plugin` and the `spring-boot-maven-plugin` runs at the same phase, it is important that the jar plugin is defined first (so that it runs before the repackage goal).
As both the `maven-jar-plugin` and the `spring-boot-maven-plugin` run at the same phase, it is important that the jar plugin is defined first (so that it runs before the repackage goal).
Again, if you are using `spring-boot-starter-parent`, this can be simplified as follows:
[source,xml,indent=0,subs="verbatim,attributes"]