You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by mi...@apache.org on 2022/12/30 22:26:19 UTC
[maven-site] branch master updated: Fix formatting to have XML rendered correctly
This is an automated email from the ASF dual-hosted git repository.
michaelo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-site.git
The following commit(s) were added to refs/heads/master by this push:
new 88693181 Fix formatting to have XML rendered correctly
88693181 is described below
commit 886931811b45ab5e4f9328342c79b0ffb33489c1
Author: Piotrek Żygieło <pz...@users.noreply.github.com>
AuthorDate: Sun May 8 14:14:40 2022 +0200
Fix formatting to have XML rendered correctly
---
content/apt/guides/mini/guide-configuring-plugins.apt | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/content/apt/guides/mini/guide-configuring-plugins.apt b/content/apt/guides/mini/guide-configuring-plugins.apt
index b111b6a9..91f1b9e5 100644
--- a/content/apt/guides/mini/guide-configuring-plugins.apt
+++ b/content/apt/guides/mini/guide-configuring-plugins.apt
@@ -154,6 +154,7 @@ mvn javadoc:help -Ddetail -Dgoal=javadoc
the following:
+----+
+<project>
...
<configuration>
<myString>a string</myString>
@@ -164,6 +165,7 @@ mvn javadoc:help -Ddetail -Dgoal=javadoc
<myURL>http://maven.apache.org</myURL>
</configuration>
...
+</project>
+----+
The detailed type coercion is explained in the table below.
@@ -214,6 +216,7 @@ mvn javadoc:help -Ddetail -Dgoal=javadoc
following:
+----+
+<project>
...
<configuration>
<person>
@@ -222,6 +225,7 @@ mvn javadoc:help -Ddetail -Dgoal=javadoc
</person>
</configuration>
...
+</project>
+----+
The rules for mapping complex objects are as follows:
@@ -241,6 +245,7 @@ mvn javadoc:help -Ddetail -Dgoal=javadoc
[]
+----+
+<project>
...
<configuration>
<person implementation="com.mycompany.mojo.query.SuperPerson">
@@ -249,6 +254,7 @@ mvn javadoc:help -Ddetail -Dgoal=javadoc
</person>
</configuration>
...
+</project>
+----+
*** {Mapping Collection Types}
@@ -355,6 +361,7 @@ public class MyAnimalMojo
+-----+
+-----+
+<project>
...
<configuration>
<myMap>
@@ -363,6 +370,7 @@ public class MyAnimalMojo
</myMap>
</configuration>
...
+</project>
+-----+
Unlike Collections the value type for Maps is always derived from the parameter type information from either
@@ -385,6 +393,7 @@ public class MyAnimalMojo
+-----+
+-----+
+<project>
...
<configuration>
<myProperties>
@@ -399,6 +408,7 @@ public class MyAnimalMojo
</myProperties>
</configuration>
...
+</project>
+-----+
In contrast to value objects and collections/arrays there is no string coercion defined for properties, i.e. you cannot give parameters of those type via CLI argument.