Skip to content

Commit

Permalink
Copye edits and typos (#606)
Browse files Browse the repository at this point in the history
  • Loading branch information
elharo authored Dec 26, 2024
1 parent 060907b commit 8b36ec6
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions content/apt/guides/plugin/guide-java-plugin-development.apt.vm
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Guide to Developing Java Plugins
superclass for the mojos to consolidate code common to all mojos.

When processing the source tree to find mojos, {{{/plugin-tools/} <<<plugin-tools>>>}}
looks for classes with <<<@Mojo>>> Java 5 annotation.
looks for classes with <<<@Mojo>>> annotation.
Any class with this annotation are included in the plugin configuration file.

*** A Simple Mojo
Expand Down Expand Up @@ -193,7 +193,7 @@ public class GreetingMojo extends AbstractMojo

** Building a Plugin

There are few plugins goals bound to the standard build lifecycle
There are few plugin goals bound to the standard build lifecycle
defined with the <<<maven-plugin>>> packaging:

*-------------+----------------------------------------------------+
Expand Down Expand Up @@ -394,13 +394,13 @@ mvn archetype:generate \

* Using Setters

You are not restricted to using private field mapping which is good if you are trying to make you Mojos resuable
You are not restricted to using private field mapping which is good if you are trying to make your Mojos resuable
outside the context of Maven.
Using the example above we could define public setters methods that the configuration mapping mechanism can use.
You can also add <<<@Parameter>>> annotation on setter method (from version 3.7.0 of `plugin-tools`)
Using the example above, we could define public setter methods that the configuration mapping mechanism can use.
You can also add an <<<@Parameter>>> annotation on the setter method (from version 3.7.0 of `plugin-tools`)


So our Mojo would look like the following:
So the Mojo would look like the following:

+----+

Expand Down Expand Up @@ -438,8 +438,8 @@ public class MyQueryMojo extends AbstractMojo {

+----+

Note the specification of the property name for each parameter which tells Maven what setter and getter to use when
the field's name does not match the intended name of the parameter in the plugin configuration.
Note the specification of the property name for each parameter which tells Maven which setter and getter to use when
the field's name does not match the name of the parameter in the plugin configuration.

* Resources

Expand Down

0 comments on commit 8b36ec6

Please sign in to comment.