You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by gn...@apache.org on 2022/02/24 16:04:11 UTC
[maven-help-plugin] branch mvn4 updated: Switch a few core plugins to the new api
This is an automated email from the ASF dual-hosted git repository.
gnodet pushed a commit to branch mvn4
in repository https://gitbox.apache.org/repos/asf/maven-help-plugin.git
The following commit(s) were added to refs/heads/mvn4 by this push:
new 82c2b25 Switch a few core plugins to the new api
82c2b25 is described below
commit 82c2b25071575f69e85486dff610c6a5bc951c04
Author: Guillaume Nodet <gn...@gmail.com>
AuthorDate: Thu Feb 24 17:00:57 2022 +0100
Switch a few core plugins to the new api
---
pom.xml | 2 +-
.../org/apache/maven/plugins/help/AllProfilesMojo.java | 3 +--
.../java/org/apache/maven/plugins/help/DescribeMojo.java | 16 ++++++++--------
3 files changed, 10 insertions(+), 11 deletions(-)
diff --git a/pom.xml b/pom.xml
index 62bd9d4..2c787ef 100644
--- a/pom.xml
+++ b/pom.xml
@@ -25,7 +25,7 @@
<parent>
<artifactId>maven-plugins</artifactId>
<groupId>org.apache.maven.plugins</groupId>
- <version>34</version>
+ <version>35-SNAPSHOT</version>
<relativePath />
</parent>
diff --git a/src/main/java/org/apache/maven/plugins/help/AllProfilesMojo.java b/src/main/java/org/apache/maven/plugins/help/AllProfilesMojo.java
index c5f6c0a..0233cff 100644
--- a/src/main/java/org/apache/maven/plugins/help/AllProfilesMojo.java
+++ b/src/main/java/org/apache/maven/plugins/help/AllProfilesMojo.java
@@ -26,7 +26,6 @@ import java.util.Map;
import org.apache.maven.model.Profile;
import org.apache.maven.plugin.MojoExecutionException;
-import org.apache.maven.plugin.MojoFailureException;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;
import org.apache.maven.project.MavenProject;
@@ -68,7 +67,7 @@ public class AllProfilesMojo
/** {@inheritDoc} */
public void execute()
- throws MojoExecutionException, MojoFailureException
+ throws MojoExecutionException
{
StringBuilder descriptionBuffer = new StringBuilder();
diff --git a/src/main/java/org/apache/maven/plugins/help/DescribeMojo.java b/src/main/java/org/apache/maven/plugins/help/DescribeMojo.java
index 9c58b02..5f0125a 100644
--- a/src/main/java/org/apache/maven/plugins/help/DescribeMojo.java
+++ b/src/main/java/org/apache/maven/plugins/help/DescribeMojo.java
@@ -423,7 +423,7 @@ public class DescribeMojo
* @throws MojoExecutionException if any
*/
private void describePlugin( PluginDescriptor pd, StringBuilder buffer )
- throws MojoFailureException, MojoExecutionException
+ throws MojoExecutionException, MojoFailureException
{
append( buffer, pd.getId(), 0 );
buffer.append( LS );
@@ -498,7 +498,7 @@ public class DescribeMojo
* @throws MojoExecutionException if any
*/
private void describeMojo( MojoDescriptor md, StringBuilder buffer )
- throws MojoFailureException, MojoExecutionException
+ throws MojoExecutionException, MojoFailureException
{
buffer.append( "Mojo: '" ).append( md.getFullGoalName() ).append( "'" );
buffer.append( LS );
@@ -523,7 +523,7 @@ public class DescribeMojo
* @throws MojoExecutionException if any
*/
private void describeMojoGuts( MojoDescriptor md, StringBuilder buffer, boolean fullDescription )
- throws MojoFailureException, MojoExecutionException
+ throws MojoExecutionException, MojoFailureException
{
append( buffer, MessageUtils.buffer().strong( md.getFullGoalName() ).toString(), 0 );
@@ -600,7 +600,7 @@ public class DescribeMojo
* @throws MojoExecutionException if any
*/
private void describeMojoParameters( MojoDescriptor md, StringBuilder buffer )
- throws MojoFailureException, MojoExecutionException
+ throws MojoExecutionException, MojoFailureException
{
List<Parameter> params = md.getParameters();
@@ -816,7 +816,7 @@ public class DescribeMojo
* @see HelpMojo#toLines(String, int, int, int)
*/
private static List<String> toLines( String text, int indent, int indentSize, int lineLength )
- throws MojoFailureException, MojoExecutionException
+ throws MojoExecutionException, MojoFailureException
{
try
{
@@ -874,7 +874,7 @@ public class DescribeMojo
* @see #toLines(String, int, int, int)
*/
private static void append( StringBuilder sb, String description, int indent )
- throws MojoFailureException, MojoExecutionException
+ throws MojoExecutionException, MojoFailureException
{
if ( StringUtils.isEmpty( description ) )
{
@@ -901,7 +901,7 @@ public class DescribeMojo
* @see #toLines(String, int, int, int)
*/
private static void append( StringBuilder sb, String key, String value, int indent )
- throws MojoFailureException, MojoExecutionException
+ throws MojoExecutionException, MojoFailureException
{
if ( StringUtils.isEmpty( key ) )
{
@@ -934,7 +934,7 @@ public class DescribeMojo
* @see #toLines(String, int, int, int)
*/
private static void appendAsParagraph( StringBuilder sb, String key, String value, int indent )
- throws MojoFailureException, MojoExecutionException
+ throws MojoExecutionException, MojoFailureException
{
if ( StringUtils.isEmpty( value ) )
{