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-artifact-transfer.git


The following commit(s) were added to refs/heads/mvn4 by this push:
     new 943e404  Switch a few core plugins to the new api
943e404 is described below

commit 943e404c1916c93fdc8587712dc415bb7655504f
Author: Guillaume Nodet <[email protected]>
AuthorDate: Thu Feb 24 17:00:58 2022 +0100

    Switch a few core plugins to the new api
---
 .../apache/maven/plugin/artifact/deployer/ArtifactDeployerMojo.java  | 5 ++---
 .../maven/plugin/artifact/installer/ArtifactInstallerMojo.java       | 5 ++---
 .../maven/plugin/dependency/collector/DependencyCollectorMojo.java   | 5 ++---
 .../org/apache/maven/plugin/project/deploy/ProjectDeployerMojo.java  | 5 ++---
 .../apache/maven/plugin/project/install/ProjectInstallerMojo.java    | 5 ++---
 pom.xml                                                              | 2 +-
 6 files changed, 11 insertions(+), 16 deletions(-)

diff --git 
a/maven-artifact-transfer/src/it/maven-artifact-deployer-plugin/src/main/java/org/apache/maven/plugin/artifact/deployer/ArtifactDeployerMojo.java
 
b/maven-artifact-transfer/src/it/maven-artifact-deployer-plugin/src/main/java/org/apache/maven/plugin/artifact/deployer/ArtifactDeployerMojo.java
index 07c72fd..52e109e 100644
--- 
a/maven-artifact-transfer/src/it/maven-artifact-deployer-plugin/src/main/java/org/apache/maven/plugin/artifact/deployer/ArtifactDeployerMojo.java
+++ 
b/maven-artifact-transfer/src/it/maven-artifact-deployer-plugin/src/main/java/org/apache/maven/plugin/artifact/deployer/ArtifactDeployerMojo.java
@@ -38,7 +38,6 @@ import 
org.apache.maven.artifact.repository.metadata.RepositoryMetadataStoreExce
 import org.apache.maven.execution.MavenSession;
 import org.apache.maven.plugin.AbstractMojo;
 import org.apache.maven.plugin.MojoExecutionException;
-import org.apache.maven.plugin.MojoFailureException;
 import org.apache.maven.plugins.annotations.Component;
 import org.apache.maven.plugins.annotations.LifecyclePhase;
 import org.apache.maven.plugins.annotations.Mojo;
@@ -73,7 +72,7 @@ public class ArtifactDeployerMojo
     private ArtifactDeployer deployer;
 
     public void execute()
-        throws MojoExecutionException, MojoFailureException
+        throws MojoExecutionException
     {
         getLog().info( "Hello from artifact-deployer plugin" );
         deployerProject( session.getProjectBuildingRequest() );
@@ -89,7 +88,7 @@ public class ArtifactDeployerMojo
     }
 
     private void deployerProject( ProjectBuildingRequest pbr )
-        throws MojoFailureException, MojoExecutionException
+        throws MojoExecutionException
     {
         try
         {
diff --git 
a/maven-artifact-transfer/src/it/maven-artifact-installer-plugin/src/main/java/org/apache/maven/plugin/artifact/installer/ArtifactInstallerMojo.java
 
b/maven-artifact-transfer/src/it/maven-artifact-installer-plugin/src/main/java/org/apache/maven/plugin/artifact/installer/ArtifactInstallerMojo.java
index c16a8b5..896a499 100644
--- 
a/maven-artifact-transfer/src/it/maven-artifact-installer-plugin/src/main/java/org/apache/maven/plugin/artifact/installer/ArtifactInstallerMojo.java
+++ 
b/maven-artifact-transfer/src/it/maven-artifact-installer-plugin/src/main/java/org/apache/maven/plugin/artifact/installer/ArtifactInstallerMojo.java
@@ -37,7 +37,6 @@ import 
org.apache.maven.artifact.repository.metadata.RepositoryMetadataStoreExce
 import org.apache.maven.execution.MavenSession;
 import org.apache.maven.plugin.AbstractMojo;
 import org.apache.maven.plugin.MojoExecutionException;
-import org.apache.maven.plugin.MojoFailureException;
 import org.apache.maven.plugins.annotations.Component;
 import org.apache.maven.plugins.annotations.LifecyclePhase;
 import org.apache.maven.plugins.annotations.Mojo;
@@ -71,7 +70,7 @@ public class ArtifactInstallerMojo
     private ArtifactInstaller installer;
 
     public void execute()
-        throws MojoExecutionException, MojoFailureException
+        throws MojoExecutionException
     {
         getLog().info( "Hello from artifact-installer plugin" );
         installProject( session.getProjectBuildingRequest() );
@@ -87,7 +86,7 @@ public class ArtifactInstallerMojo
     }
 
     private void installProject( ProjectBuildingRequest pbr )
-        throws MojoFailureException, MojoExecutionException
+        throws MojoExecutionException
     {
         try
         {
diff --git 
a/maven-artifact-transfer/src/it/maven-dependency-collector-plugin/src/main/java/org/apache/maven/plugin/dependency/collector/DependencyCollectorMojo.java
 
b/maven-artifact-transfer/src/it/maven-dependency-collector-plugin/src/main/java/org/apache/maven/plugin/dependency/collector/DependencyCollectorMojo.java
index eb74bdb..4ae1b50 100644
--- 
a/maven-artifact-transfer/src/it/maven-dependency-collector-plugin/src/main/java/org/apache/maven/plugin/dependency/collector/DependencyCollectorMojo.java
+++ 
b/maven-artifact-transfer/src/it/maven-dependency-collector-plugin/src/main/java/org/apache/maven/plugin/dependency/collector/DependencyCollectorMojo.java
@@ -23,7 +23,6 @@ package org.apache.maven.plugin.artifact.installer;
 import org.apache.maven.execution.MavenSession;
 import org.apache.maven.plugin.AbstractMojo;
 import org.apache.maven.plugin.MojoExecutionException;
-import org.apache.maven.plugin.MojoFailureException;
 import org.apache.maven.plugins.annotations.Component;
 import org.apache.maven.plugins.annotations.LifecyclePhase;
 import org.apache.maven.plugins.annotations.Mojo;
@@ -54,7 +53,7 @@ public class DependencyCollectorMojo
     private DependencyCollector collector;
 
     public void execute()
-        throws MojoExecutionException, MojoFailureException
+        throws MojoExecutionException
     {
         getLog().info( "Hello from dependency-collector plugin" );
         collectDependencies( session.getProjectBuildingRequest(), 
session.getCurrentProject().getModel() );
@@ -62,7 +61,7 @@ public class DependencyCollectorMojo
     }
 
     private void collectDependencies( ProjectBuildingRequest 
projectBuildingRequest, Model model )
-        throws MojoFailureException, MojoExecutionException
+        throws MojoExecutionException
     {
         try
         {
diff --git 
a/maven-artifact-transfer/src/it/maven-project-deployer-plugin/src/main/java/org/apache/maven/plugin/project/deploy/ProjectDeployerMojo.java
 
b/maven-artifact-transfer/src/it/maven-project-deployer-plugin/src/main/java/org/apache/maven/plugin/project/deploy/ProjectDeployerMojo.java
index 39a2fb7..fea89dd 100644
--- 
a/maven-artifact-transfer/src/it/maven-project-deployer-plugin/src/main/java/org/apache/maven/plugin/project/deploy/ProjectDeployerMojo.java
+++ 
b/maven-artifact-transfer/src/it/maven-project-deployer-plugin/src/main/java/org/apache/maven/plugin/project/deploy/ProjectDeployerMojo.java
@@ -31,7 +31,6 @@ import 
org.apache.maven.artifact.repository.ArtifactRepository;
 import org.apache.maven.execution.MavenSession;
 import org.apache.maven.plugin.AbstractMojo;
 import org.apache.maven.plugin.MojoExecutionException;
-import org.apache.maven.plugin.MojoFailureException;
 import org.apache.maven.plugins.annotations.Component;
 import org.apache.maven.plugins.annotations.LifecyclePhase;
 import org.apache.maven.plugins.annotations.Mojo;
@@ -72,7 +71,7 @@ public class ProjectDeployerMojo
     private MavenProjectHelper projectHelper;
 
     public void execute()
-        throws MojoExecutionException, MojoFailureException
+        throws MojoExecutionException
     {
         getLog().info( "Hello from project-deployer plugin" );
         installProject( session.getProjectBuildingRequest() );
@@ -88,7 +87,7 @@ public class ProjectDeployerMojo
     }
 
     private void installProject( ProjectBuildingRequest pbr )
-        throws MojoFailureException, MojoExecutionException
+        throws MojoExecutionException
     {
         try
         {
diff --git 
a/maven-artifact-transfer/src/it/maven-project-installer-plugin/src/main/java/org/apache/maven/plugin/project/install/ProjectInstallerMojo.java
 
b/maven-artifact-transfer/src/it/maven-project-installer-plugin/src/main/java/org/apache/maven/plugin/project/install/ProjectInstallerMojo.java
index ee932aa..8ed4b3b 100644
--- 
a/maven-artifact-transfer/src/it/maven-project-installer-plugin/src/main/java/org/apache/maven/plugin/project/install/ProjectInstallerMojo.java
+++ 
b/maven-artifact-transfer/src/it/maven-project-installer-plugin/src/main/java/org/apache/maven/plugin/project/install/ProjectInstallerMojo.java
@@ -30,7 +30,6 @@ import java.util.List;
 import org.apache.maven.execution.MavenSession;
 import org.apache.maven.plugin.AbstractMojo;
 import org.apache.maven.plugin.MojoExecutionException;
-import org.apache.maven.plugin.MojoFailureException;
 import org.apache.maven.plugins.annotations.Component;
 import org.apache.maven.plugins.annotations.LifecyclePhase;
 import org.apache.maven.plugins.annotations.Mojo;
@@ -70,7 +69,7 @@ public class ProjectInstallerMojo
     private MavenProjectHelper projectHelper;
 
     public void execute()
-        throws MojoExecutionException, MojoFailureException
+        throws MojoExecutionException
     {
         getLog().info( "Hello from project-installer plugin" );
         installProject( session.getProjectBuildingRequest() );
@@ -86,7 +85,7 @@ public class ProjectInstallerMojo
     }
 
     private void installProject( ProjectBuildingRequest pbr )
-        throws MojoFailureException, MojoExecutionException
+        throws MojoExecutionException
     {
         try
         {
diff --git a/pom.xml b/pom.xml
index 22811cd..614bbc6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -204,7 +204,7 @@
         <plugin>
           <groupId>org.codehaus.mojo</groupId>
           <artifactId>animal-sniffer-maven-plugin</artifactId>
-          <version>1.20</version>
+          <version>1.21</version>
           <executions>
             <execution>
               <id>sniff</id>

Reply via email to