You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2022/05/28 21:16:41 UTC
[maven-site] branch master updated: switch from Mojo javadoc tags to Java 5 annotations
This is an automated email from the ASF dual-hosted git repository.
hboutemy 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 86d968bd switch from Mojo javadoc tags to Java 5 annotations
86d968bd is described below
commit 86d968bd205436f92e2de4d4d2e40013824519ac
Author: Hervé Boutemy <hb...@apache.org>
AuthorDate: Sat May 28 23:16:38 2022 +0200
switch from Mojo javadoc tags to Java 5 annotations
---
content/apt/guides/mini/guide-configuring-plugins.apt | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/content/apt/guides/mini/guide-configuring-plugins.apt b/content/apt/guides/mini/guide-configuring-plugins.apt
index a3588bcd..8676e32b 100644
--- a/content/apt/guides/mini/guide-configuring-plugins.apt
+++ b/content/apt/guides/mini/guide-configuring-plugins.apt
@@ -105,9 +105,7 @@ Guide to Configuring Plug-ins
a particular URL, with a specified timeout and list of options. The Mojo might look like the following:
+----+
-/**
- * @goal query
- */
+@Mojo( name = "query" )
public class MyQueryMojo
extends AbstractMojo
{
@@ -484,10 +482,7 @@ public class MyAnimalMojo
Now, let us have another mojo example which shows a default lifecycle phase binding.
+----+
-/**
- * @goal query
- * @phase package
- */
+@Mojo( name = "query", defaultPhase = LifecyclePhase.PACKAGE )
public class MyBoundQueryMojo
extends AbstractMojo
{