You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sj...@apache.org on 2022/01/04 07:57:27 UTC

[maven-plugin-tools] branch master updated: (doc) Simplify documentation

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-plugin-tools.git


The following commit(s) were added to refs/heads/master by this push:
     new 70469f3  (doc) Simplify documentation
70469f3 is described below

commit 70469f3ae5c215bd194deb5df7f51646237f5334
Author: Slawomir Jaranowski <s....@gmail.com>
AuthorDate: Sun Nov 28 20:11:09 2021 +0100

    (doc) Simplify documentation
    
    Since maven-plugin-plugin require Maven 3.2.5 no additional configuration is needed.
---
 .../src/site/apt/examples/using-annotations.apt.vm        | 15 +++------------
 1 file changed, 3 insertions(+), 12 deletions(-)

diff --git a/maven-plugin-plugin/src/site/apt/examples/using-annotations.apt.vm b/maven-plugin-plugin/src/site/apt/examples/using-annotations.apt.vm
index b18271d..d6a0df6 100644
--- a/maven-plugin-plugin/src/site/apt/examples/using-annotations.apt.vm
+++ b/maven-plugin-plugin/src/site/apt/examples/using-annotations.apt.vm
@@ -75,13 +75,8 @@ Using Plugin Tools Java Annotations
 
 * POM configuration
 
-  To be able to use these Java annotations, you need to add some configuration to your plugin POM:
-
-  * add <<<maven-plugin-annotations>>> dependency, preferably with <<<provided>>> scope,
-
-  * override Maven core's <<<default-descriptor>>> execution phase to <<<process-classes>>>,
-
-  []
+  To be able to use these Java annotations, you need to add to your plugin POM
+  <<<maven-plugin-annotations>>> dependency, preferably with <<<provided>>> scope.
 
 +-----+
 <project>
@@ -94,7 +89,7 @@ Using Plugin Tools Java Annotations
       <groupId>org.apache.maven.plugin-tools</groupId>
       <artifactId>maven-plugin-annotations</artifactId>
       <version>${project.version}</version>
-      <optional>true</optional> <!-- annotations are not used at runtime because @Retention(value=CLASS), they are needed only to build the plugin -->
+      <scope>provided</scope> <!-- annotations are not used at runtime because @Retention(value=CLASS), they are needed only to build the plugin -->
     </dependency>
   </dependencies>
   ...
@@ -105,10 +100,6 @@ Using Plugin Tools Java Annotations
         <artifactId>maven-plugin-plugin</artifactId>
         <version>${project.version}</version>
         <executions>
-          <execution>
-            <id>default-descriptor</id>
-            <phase>process-classes</phase>
-          </execution>
           <!-- if you want to generate help goal -->
           <execution>
             <id>help-goal</id>