src/main/java/org/codehaus/mojo/exec/AbstractExecMojo.java
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;
    }
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;
    }
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.

@return an artifact which refers to the actual executable tool (not a POM)
@throws MojoExecutionException if no executable artifact was found
Examine the plugin dependencies to find the executable artifact .