/** * Get root node of dependency tree for a given project * * @param buildingRequest * @return root node of dependency tree * @throws MavenReportException */ private DependencyNode getNode( ProjectBuildingRequest buildingRequest ) throws MavenReportException { try { return dependencyTreeBuilder.buildDependencyTree( buildingRequest.getProject(), localRepository, filter ); } catch ( DependencyTreeBuilderException e ) { throw new MavenReportException( "Could not build dependency tree: " + e.getMessage(), e ); } }
throw new DependencyTreeBuilderException( "Cannot build project dependency tree", exception ); throw new DependencyTreeBuilderException( "Invalid dependency version for artifact " + project.getArtifact() );
throw new EnforcerRuleException( "Could not build dependency tree " + e.getLocalizedMessage(), e );
throw new EnforcerRuleException( "Could not build dependency tree " + e.getLocalizedMessage(), e );
/** * Builds the dependency graph for Maven 2. * * @param project the project * @param filter artifact filter (can be <code>null</code>) * @return DependencyNode containing the dependency graph. * @throws DependencyGraphBuilderException if some of the dependencies could not be resolved. */ public DependencyNode buildDependencyGraph( MavenProject project, ArtifactFilter filter ) throws DependencyGraphBuilderException { try { return buildDependencyNode( null, treeBuilder.buildDependencyTree( project ), filter ); } catch ( DependencyTreeBuilderException e ) { throw new DependencyGraphBuilderException( e.getMessage(), e ); } }
throw new EnforcerRuleException( "Could not build dependency tree " + e.getLocalizedMessage(), e );
throw new ConsumerException( e.getMessage(), e );
throw new EnforcerRuleException( "Could not build dependency tree " + e.getLocalizedMessage(), e );