public PluginNotFoundException( Plugin plugin, ArtifactNotFoundException e ) { super( "Plugin could not be found - check that the goal name is correct: " + e.getMessage(), e.getGroupId(), e.getArtifactId(), e.getVersion(), "maven-plugin", null, e.getRemoteRepositories(), null, e.getCause() ); this.plugin = plugin; }
msg.append( " Failed to retrieve " + e.getDownloadUrl() + "\n" ); msg.append( "from the following repositories:" ); for ( Iterator repositories = e.getRemoteRepositories().iterator(); repositories.hasNext(); )