try {
Artifact artifact = new DefaultArtifact( this.getProject().getArtifact().toString() );
DependencyService dependencyService = new DependencyService();
Visualizer consoleVisualizer = new ConsoleVisualizer();
ClashCollectResultWrapper clashCollectResultWrapper = new ClashCollectResultWrapper( dependencyService.getDependencyTree( artifact, this.getRepoSession(), this.getRepoSystem(), this.getIncludedScopesList(), this.getExcludedScopesList(), this.isIncludeOptional() ) );
consoleVisualizer.visualize( clashCollectResultWrapper, this.getSeverity(), this );
} catch ( IllegalArgumentException e ) {
throw new MojoFailureException( e.getMessage(), e );
}
}