[ 
https://issues.apache.org/jira/browse/MPIR-362?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Roberto Benedetti updated MPIR-362:
-----------------------------------
    Attachment: Maven Project Info Reports Plugin.url

> Dependency Management report doesn't exclude system scoped dependencies
> -----------------------------------------------------------------------
>
>                 Key: MPIR-362
>                 URL: https://issues.apache.org/jira/browse/MPIR-362
>             Project: Maven Project Info Reports Plugin
>          Issue Type: Bug
>          Components: dependency-management
>    Affects Versions: 2.9
>         Environment: Windows 7, Maven, 3.5.2, JDK 1.7.0_161
>            Reporter: Roberto Benedetti
>            Assignee: Michael Osipov
>            Priority: Major
>         Attachments: Maven Project Info Reports Plugin.url
>
>
> I have the same issue that was closed as "Cannot Reproduce". With this pom.xml
> {code:xml}
> <project xmlns="http://maven.apache.org/POM/4.0.0"; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
> http://maven.apache.org/xsd/maven-4.0.0.xsd";>
>       <modelVersion>4.0.0</modelVersion>
>       <groupId>free.test</groupId>
>       <artifactId>system-scope-test</artifactId>
>       <version>0.0.1-SNAPSHOT</version>
>       <packaging>jar</packaging>
>       <url>http://test.free/</url>
>       <properties>
>               <java.version>1.8</java.version>
>               
> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
>       </properties>
>       <dependencyManagement>
>               <dependencies>
>                       <dependency>
>                               <groupId>netscape</groupId>
>                               <artifactId>plugin</artifactId>
>                               <version>${java.version}</version>
>                               <scope>system</scope>
>                               
> <systemPath>${java.home}/lib/plugin.jar</systemPath>
>                       </dependency>
>               </dependencies>
>       </dependencyManagement>
>       <build>
>               <pluginManagement>
>                       <plugins>
>                               <plugin>
>                                       
> <artifactId>maven-compiler-plugin</artifactId>
>                                       <version>3.3</version>
>                                       <configuration>
>                                               <source>${java.version}</source>
>                                               <target>${java.version}</target>
>                                       </configuration>
>                               </plugin>
>                       </plugins>
>               </pluginManagement>
>       </build>
>       <reporting>
>               <plugins>
>                       <plugin>
>                               
> <artifactId>maven-project-info-reports-plugin</artifactId>
>                               <version>2.9</version>
>                               <reportSets>
>                                       <reportSet>
>                                               <reports>
>                                                       
> <report>dependency-management</report>
>                                               </reports>
>                                       </reportSet>
>                               </reportSets>
>                       </plugin>
>               </plugins>
>       </reporting>
> </project>
> {code}
> running {{mvn site}} will give the following warning:
> {noformat}
> [INFO] Generating "Dependency Management" report    --- 
> maven-project-info-reports-plugin:2.9
> [WARNING] Unable to create Maven project for netscape:plugin:pom:1.8 from 
> repository.
> org.apache.maven.project.ProjectBuildingException: Error resolving project 
> artifact: Failure to find netscape:plugin:pom:1.8 in 
> https://repo.maven.apache.org/maven2 was cached in the local repository, 
> resolution will not be reattempted until the update interval of central has 
> elapsed or updates are forced for project netscape:plugin:pom:1.8
>     at org.apache.maven.project.DefaultProjectBuilder.build 
> (DefaultProjectBuilder.java:314)
>     at 
> org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository 
> (DefaultMavenProjectBuilder.java:236)
>     at 
> org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository 
> (DefaultMavenProjectBuilder.java:251)
>     at 
> org.apache.maven.report.projectinfo.dependencies.RepositoryUtils.getMavenProjectFromRepository
>  (RepositoryUtils.java:298)
>     at 
> org.apache.maven.report.projectinfo.dependencies.renderer.DependencyManagementRenderer.getDependencyRow
>  (DependencyManagementRenderer.java:260)
>     at 
> org.apache.maven.report.projectinfo.dependencies.renderer.DependencyManagementRenderer.renderDependenciesForScope
>  (DependencyManagementRenderer.java:208)
>     at 
> org.apache.maven.report.projectinfo.dependencies.renderer.DependencyManagementRenderer.renderDependenciesForAllScopes
>  (DependencyManagementRenderer.java:161)
>     at 
> org.apache.maven.report.projectinfo.dependencies.renderer.DependencyManagementRenderer.renderSectionProjectDependencies
>  (DependencyManagementRenderer.java:150)
>     at 
> org.apache.maven.report.projectinfo.dependencies.renderer.DependencyManagementRenderer.renderBody
>  (DependencyManagementRenderer.java:136)
>     at org.apache.maven.reporting.AbstractMavenReportRenderer.render 
> (AbstractMavenReportRenderer.java:83)
>     at 
> org.apache.maven.report.projectinfo.DependencyManagementReport.executeReport 
> (DependencyManagementReport.java:124)
>     at org.apache.maven.reporting.AbstractMavenReport.generate 
> (AbstractMavenReport.java:255)
>     at org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument 
> (ReportDocumentRenderer.java:219)
>     at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule 
> (DefaultSiteRenderer.java:319)
>     at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render 
> (DefaultSiteRenderer.java:135)
>     at org.apache.maven.plugins.site.SiteMojo.renderLocale (SiteMojo.java:175)
>     at org.apache.maven.plugins.site.SiteMojo.execute (SiteMojo.java:138)
>     at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo 
> (DefaultBuildPluginManager.java:134)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:208)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:154)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:146)
>     at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
> (LifecycleModuleBuilder.java:117)
>     at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
> (LifecycleModuleBuilder.java:81)
>     at 
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
>  (SingleThreadedBuilder.java:51)
>     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute 
> (LifecycleStarter.java:128)
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309)
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
>     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
>     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
>     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
>     at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
>     at sun.reflect.NativeMethodAccessorImpl.invoke 
> (NativeMethodAccessorImpl.java:57)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke 
> (DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke (Method.java:606)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced 
> (Launcher.java:289)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launch 
> (Launcher.java:229)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode 
> (Launcher.java:415)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.main 
> (Launcher.java:356)
> Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Failure 
> to find netscape:plugin:pom:1.8 in https://repo.maven.apache.org/maven2 was 
> cached in the local repository, resolution will not be reattempted until the 
> update interval of central has elapsed or updates are forced
>     at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve 
> (DefaultArtifactResolver.java:422)
>     at 
> org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts 
> (DefaultArtifactResolver.java:224)
>     at 
> org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact 
> (DefaultArtifactResolver.java:201)
>     at 
> org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveArtifact 
> (DefaultRepositorySystem.java:260)
>     at org.apache.maven.project.DefaultProjectBuilder.build 
> (DefaultProjectBuilder.java:302)
>     at 
> org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository 
> (DefaultMavenProjectBuilder.java:236)
>     at 
> org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository 
> (DefaultMavenProjectBuilder.java:251)
>     at 
> org.apache.maven.report.projectinfo.dependencies.RepositoryUtils.getMavenProjectFromRepository
>  (RepositoryUtils.java:298)
>     at 
> org.apache.maven.report.projectinfo.dependencies.renderer.DependencyManagementRenderer.getDependencyRow
>  (DependencyManagementRenderer.java:260)
>     at 
> org.apache.maven.report.projectinfo.dependencies.renderer.DependencyManagementRenderer.renderDependenciesForScope
>  (DependencyManagementRenderer.java:208)
>     at 
> org.apache.maven.report.projectinfo.dependencies.renderer.DependencyManagementRenderer.renderDependenciesForAllScopes
>  (DependencyManagementRenderer.java:161)
>     at 
> org.apache.maven.report.projectinfo.dependencies.renderer.DependencyManagementRenderer.renderSectionProjectDependencies
>  (DependencyManagementRenderer.java:150)
>     at 
> org.apache.maven.report.projectinfo.dependencies.renderer.DependencyManagementRenderer.renderBody
>  (DependencyManagementRenderer.java:136)
>     at org.apache.maven.reporting.AbstractMavenReportRenderer.render 
> (AbstractMavenReportRenderer.java:83)
>     at 
> org.apache.maven.report.projectinfo.DependencyManagementReport.executeReport 
> (DependencyManagementReport.java:124)
>     at org.apache.maven.reporting.AbstractMavenReport.generate 
> (AbstractMavenReport.java:255)
>     at org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument 
> (ReportDocumentRenderer.java:219)
>     at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule 
> (DefaultSiteRenderer.java:319)
>     at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render 
> (DefaultSiteRenderer.java:135)
>     at org.apache.maven.plugins.site.SiteMojo.renderLocale (SiteMojo.java:175)
>     at org.apache.maven.plugins.site.SiteMojo.execute (SiteMojo.java:138)
>     at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo 
> (DefaultBuildPluginManager.java:134)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:208)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:154)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:146)
>     at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
> (LifecycleModuleBuilder.java:117)
>     at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
> (LifecycleModuleBuilder.java:81)
>     at 
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
>  (SingleThreadedBuilder.java:51)
>     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute 
> (LifecycleStarter.java:128)
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309)
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
>     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
>     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
>     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
>     at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
>     at sun.reflect.NativeMethodAccessorImpl.invoke 
> (NativeMethodAccessorImpl.java:57)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke 
> (DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke (Method.java:606)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced 
> (Launcher.java:289)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launch 
> (Launcher.java:229)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode 
> (Launcher.java:415)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.main 
> (Launcher.java:356)
> Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Failure to 
> find netscape:plugin:pom:1.8 in https://repo.maven.apache.org/maven2 was
> cached in the local repository, resolution will not be reattempted until the 
> update interval of central has elapsed or updates are forced
>     at 
> org.eclipse.aether.internal.impl.DefaultUpdateCheckManager.newException 
> (DefaultUpdateCheckManager.java:233)
>     at 
> org.eclipse.aether.internal.impl.DefaultUpdateCheckManager.checkArtifact 
> (DefaultUpdateCheckManager.java:208)
>     at 
> org.eclipse.aether.internal.impl.DefaultArtifactResolver.gatherDownloads 
> (DefaultArtifactResolver.java:563)
>     at 
> org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads 
> (DefaultArtifactResolver.java:481)
>     at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve 
> (DefaultArtifactResolver.java:399)
>     at 
> org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts 
> (DefaultArtifactResolver.java:224)
>     at 
> org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact 
> (DefaultArtifactResolver.java:201)
>     at 
> org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveArtifact 
> (DefaultRepositorySystem.java:260)
>     at org.apache.maven.project.DefaultProjectBuilder.build 
> (DefaultProjectBuilder.java:302)
>     at 
> org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository 
> (DefaultMavenProjectBuilder.java:236)
>     at 
> org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository 
> (DefaultMavenProjectBuilder.java:251)
>     at 
> org.apache.maven.report.projectinfo.dependencies.RepositoryUtils.getMavenProjectFromRepository
>  (RepositoryUtils.java:298)
>     at 
> org.apache.maven.report.projectinfo.dependencies.renderer.DependencyManagementRenderer.getDependencyRow
>  (DependencyManagementRenderer.java:260)
>     at 
> org.apache.maven.report.projectinfo.dependencies.renderer.DependencyManagementRenderer.renderDependenciesForScope
>  (DependencyManagementRenderer.java:208)
>     at 
> org.apache.maven.report.projectinfo.dependencies.renderer.DependencyManagementRenderer.renderDependenciesForAllScopes
>  (DependencyManagementRenderer.java:161)
>     at 
> org.apache.maven.report.projectinfo.dependencies.renderer.DependencyManagementRenderer.renderSectionProjectDependencies
>  (DependencyManagementRenderer.java:150)
>     at 
> org.apache.maven.report.projectinfo.dependencies.renderer.DependencyManagementRenderer.renderBody
>  (DependencyManagementRenderer.java:136)
>     at org.apache.maven.reporting.AbstractMavenReportRenderer.render 
> (AbstractMavenReportRenderer.java:83)
>     at 
> org.apache.maven.report.projectinfo.DependencyManagementReport.executeReport 
> (DependencyManagementReport.java:124)
>     at org.apache.maven.reporting.AbstractMavenReport.generate 
> (AbstractMavenReport.java:255)
>     at org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument 
> (ReportDocumentRenderer.java:219)
>     at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule 
> (DefaultSiteRenderer.java:319)
>     at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render 
> (DefaultSiteRenderer.java:135)
>     at org.apache.maven.plugins.site.SiteMojo.renderLocale (SiteMojo.java:175)
>     at org.apache.maven.plugins.site.SiteMojo.execute (SiteMojo.java:138)
>     at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo 
> (DefaultBuildPluginManager.java:134)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:208)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:154)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:146)
>     at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
> (LifecycleModuleBuilder.java:117)
>     at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
> (LifecycleModuleBuilder.java:81)
>     at 
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
>  (SingleThreadedBuilder.java:51)
>     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute 
> (LifecycleStarter.java:128)
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309)
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
>     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
>     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
>     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
>     at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
>     at sun.reflect.NativeMethodAccessorImpl.invoke 
> (NativeMethodAccessorImpl.java:57)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke 
> (DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke (Method.java:606)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced 
> (Launcher.java:289)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launch 
> (Launcher.java:229)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode 
> (Launcher.java:415)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.main 
> (Launcher.java:356)
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to