public PluginArtifact( Plugin plugin, Artifact pluginArtifact ) { super( plugin.getGroupId(), plugin.getArtifactId(), plugin.getVersion(), null, "maven-plugin", null, new PluginArtifactHandler() ); this.plugin = plugin; setFile( pluginArtifact.getFile() ); setResolved( true ); }
public static void log( MavenProject project, String where ) { if( disabled ) return; log.debug( "MavenProject ({}) artifacts @ {}:", project.getId(), where); logArtifactContents( "artifacts", project.getArtifacts() ); logArtifactContents( "attachedArtifacts", project.getAttachedArtifacts() ); logArtifactContents( "dependencyArtifacts", project.getDependencyArtifacts() ); logArtifactContents( "extensionArtifacts", project.getExtensionArtifacts() ); logArtifactContents( "pluginArtifacts", project.getPluginArtifacts() ); for( Artifact artifact : project.getPluginArtifacts() ) { if (artifact instanceof PluginArtifact) { List<Dependency> dependencies = ((PluginArtifact) artifact).getDependencies(); Integer maybeSize = (dependencies == null ? null : dependencies.size()); log.debug( " {} " + "pluginDependencies" + ": {}", maybeSize, dependencies ); } } }
/** * @see #resolveVersion(String, String) */ public String resolveVersion(PluginArtifact plugin) { return resolveVersion(plugin.getGroupId(), plugin.getArtifactId()); }
public static void log( MavenProject project, String where ) { if( disabled ) return; log.debug( "MavenProject ({}) artifacts @ {}:", project.getId(), where); logArtifactContents( "artifacts", project.getArtifacts() ); logArtifactContents( "attachedArtifacts", project.getAttachedArtifacts() ); logArtifactContents( "dependencyArtifacts", project.getDependencyArtifacts() ); logArtifactContents( "extensionArtifacts", project.getExtensionArtifacts() ); logArtifactContents( "pluginArtifacts", project.getPluginArtifacts() ); for( Artifact artifact : project.getPluginArtifacts() ) { if (artifact instanceof PluginArtifact) { List<Dependency> dependencies = ((PluginArtifact) artifact).getDependencies(); Integer maybeSize = (dependencies == null ? null : dependencies.size()); log.debug( " {} " + "pluginDependencies" + ": {}", maybeSize, dependencies ); } } }
public static void log( MavenProject project, String where ) { if( disabled ) return; log.debug( "MavenProject ({}) artifacts @ {}:", project.getId(), where); logArtifactContents( "artifacts", project.getArtifacts() ); logArtifactContents( "attachedArtifacts", project.getAttachedArtifacts() ); logArtifactContents( "dependencyArtifacts", project.getDependencyArtifacts() ); logArtifactContents( "extensionArtifacts", project.getExtensionArtifacts() ); logArtifactContents( "pluginArtifacts", project.getPluginArtifacts() ); for( Artifact artifact : project.getPluginArtifacts() ) { if (artifact instanceof PluginArtifact) { List<Dependency> dependencies = ((PluginArtifact) artifact).getDependencies(); Integer maybeSize = (dependencies == null ? null : dependencies.size()); log.debug( " {} " + "pluginDependencies" + ": {}", maybeSize, dependencies ); } } }