protected Artifact findExecutableArtifact ( ) throws MojoExecutionException { // ILimitedArtifactIdentifier execToolAssembly = this.getExecutableToolAssembly(); Artifact executableTool = null ; for ( Artifact pluginDep : this . pluginDependencies ) { if ( this . executableDependency . matches ( pluginDep ) ) { executableTool = pluginDep ; break ; } } if ( executableTool == null ) { throw new MojoExecutionException ( "No dependency of the plugin matches the specified executableDependency." + " Specified executableToolAssembly is: " + executableDependency . toString ( ) ) ; } return executableTool ; }
Examine the plugin dependencies to find the executable artifact .