Search in sources :

Example 1 with RepositoryUtils

use of org.apache.maven.report.projectinfo.dependencies.RepositoryUtils in project maven-plugins by apache.

the class DependencyManagementReport method executeReport.

@Override
public void executeReport(Locale locale) {
    @SuppressWarnings("unchecked") RepositoryUtils repoUtils = new RepositoryUtils(getLog(), wagonManager, settings, mavenProjectBuilder, factory, resolver, project.getRemoteArtifactRepositories(), project.getPluginArtifactRepositories(), localRepository, repositoryMetadataManager);
    DependencyManagementRenderer r = new DependencyManagementRenderer(getSink(), locale, getI18N(locale), getLog(), getManagementDependencies(), artifactMetadataSource, artifactFactory, mavenProjectBuilder, remoteRepositories, localRepository, repoUtils);
    r.render();
}
Also used : RepositoryUtils(org.apache.maven.report.projectinfo.dependencies.RepositoryUtils) DependencyManagementRenderer(org.apache.maven.report.projectinfo.dependencies.renderer.DependencyManagementRenderer)

Example 2 with RepositoryUtils

use of org.apache.maven.report.projectinfo.dependencies.RepositoryUtils in project maven-plugins by apache.

the class DependenciesReport method executeReport.

@Override
public void executeReport(Locale locale) {
    if (settings.isOffline() && dependencyLocationsEnabled) {
        getLog().warn("The parameter 'dependencyLocationsEnabled' is ignored in offline mode.");
        dependencyLocationsEnabled = false;
    }
    try {
        copyResources(new File(getOutputDirectory()));
    } catch (IOException e) {
        getLog().error("Cannot copy ressources", e);
    }
    @SuppressWarnings("unchecked") RepositoryUtils repoUtils = new RepositoryUtils(getLog(), wagonManager, settings, mavenProjectBuilder, factory, resolver, project.getRemoteArtifactRepositories(), project.getPluginArtifactRepositories(), localRepository, repositoryMetadataManager);
    DependencyNode dependencyNode = resolveProject();
    Dependencies dependencies = new Dependencies(project, dependencyNode, classesAnalyzer);
    DependenciesReportConfiguration config = new DependenciesReportConfiguration(dependencyDetailsEnabled, dependencyLocationsEnabled);
    DependenciesRenderer r = new DependenciesRenderer(getSink(), locale, getI18N(locale), getLog(), settings, dependencies, dependencyNode, config, repoUtils, artifactFactory, mavenProjectBuilder, remoteRepositories, localRepository);
    r.render();
}
Also used : RepositoryUtils(org.apache.maven.report.projectinfo.dependencies.RepositoryUtils) DependencyNode(org.apache.maven.shared.dependency.graph.DependencyNode) DependenciesReportConfiguration(org.apache.maven.report.projectinfo.dependencies.DependenciesReportConfiguration) IOException(java.io.IOException) Dependencies(org.apache.maven.report.projectinfo.dependencies.Dependencies) DependenciesRenderer(org.apache.maven.report.projectinfo.dependencies.renderer.DependenciesRenderer) File(java.io.File)

Aggregations

RepositoryUtils (org.apache.maven.report.projectinfo.dependencies.RepositoryUtils)2 File (java.io.File)1 IOException (java.io.IOException)1 Dependencies (org.apache.maven.report.projectinfo.dependencies.Dependencies)1 DependenciesReportConfiguration (org.apache.maven.report.projectinfo.dependencies.DependenciesReportConfiguration)1 DependenciesRenderer (org.apache.maven.report.projectinfo.dependencies.renderer.DependenciesRenderer)1 DependencyManagementRenderer (org.apache.maven.report.projectinfo.dependencies.renderer.DependencyManagementRenderer)1 DependencyNode (org.apache.maven.shared.dependency.graph.DependencyNode)1