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 ); } } }
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 ); } } }