private void addRelevantPluginDependenciesToClasspath ( List < Path > path ) throws MojoExecutionException { if ( hasCommandlineArgs ( ) ) { arguments = parseCommandlineArgs ( ) ; } for ( Artifact classPathElement : this . determineRelevantPluginDependencies ( ) ) { getLog ( ) . debug ( "Adding plugin dependency artifact: " + classPathElement . getArtifactId ( ) + " to classpath" ) ; path . add ( classPathElement . getFile ( ) . toPath ( ) ) ; } }
Add any relevant project dependencies to the classpath . Indirectly takes includePluginDependencies and ExecutableDependency into consideration .