public synchronized Map < String , Dependency > getPluginDependencies ( ) throws MojoExecutionException { if ( this . pluginDependencies == null ) { final String groupId = getConfig ( "plugin.groupId" ) ; //$NON-NLS-1$ final String artifactId = getConfig ( "plugin.artifactId" ) ; //$NON-NLS-1$ final String pluginArtifactKey = ArtifactUtils . versionlessKey ( groupId , artifactId ) ; final Set < Artifact > dependencies = resolveDependencies ( pluginArtifactKey , true ) ; final Map < String , Dependency > deps = new TreeMap <> ( ) ; for ( final Artifact artifact : dependencies ) { final Dependency dep = toDependency ( artifact ) ; deps . put ( ArtifactUtils . versionlessKey ( artifact ) , dep ) ; } this . pluginDependencies = deps ; } return this . pluginDependencies ; }
Build the map of dependencies for the current plugin .