Switch a few core plugins to the new api
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 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 @@
/** {@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 @@
* @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 @@
* @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 @@
* @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 @@
* @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 @@
* @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 @@
* @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 @@
* @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 @@
* @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 ) )
{