public static File getArtifactFile ( AbstractWisdomMojo mojo , String artifactId , String type ) { File file = getArtifactFileFromProjectDependencies ( mojo , artifactId , type ) ; if ( file == null ) { file = getArtifactFileFromPluginDependencies ( mojo , artifactId , type ) ; } return file ; }
Gets the file of the dependency with the given artifact id from the project dependencies and if not found from the plugin dependencies . This method also check the extension .