Uploaded image for project: 'Maven Project Info Reports Plugin'
  1. Maven Project Info Reports Plugin
  2. MPIR-217

Generating Dependency management report prints "Unable to create Maven project from repository." warning with ugly stacktrace

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.3.1
    • None
    • dependency-management
    • None
    • maven 3.0.1
      maven site plugin 3.0-beta-3
      java 1.6 u23
      windows 7 x64

    Description

      Generating Dependency management report results in [1] stack traces printed while generating site for a project. Btw, dependencies for which this stack trace gets printed, are not available on repository printed in the output messages. [2] is relevant pom.xml fragment.

      [1] Project build output fragment

      [WARNING] Unable to create Maven project from repository.
      org.apache.maven.project.ProjectBuildingException: Error resolving project artifact: Failure to find org.springframework
      .webflow:spring-binding:pom:${org.springframework.webflow.version} in https://repo.foo.bar.com/content/groups/foo-bar-
      group was cached in the local repository, resolution will not be reattempted until the update interval of foo-bar ha
      s elapsed or updates are forced for project org.springframework.webflow:spring-binding:pom:${org.springframework.webflow
      .version}
              at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:260)
              at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:237)
              at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:252)
              at org.apache.maven.report.projectinfo.dependencies.RepositoryUtils.getMavenProjectFromRepository(RepositoryUtil
      s.java:332)
              at org.apache.maven.report.projectinfo.dependencies.renderer.DependencyManagementRenderer.getDependencyRow(Depen
      dencyManagementRenderer.java:219)
              at org.apache.maven.report.projectinfo.dependencies.renderer.DependencyManagementRenderer.renderDependenciesForS
      cope(DependencyManagementRenderer.java:198)
              at org.apache.maven.report.projectinfo.dependencies.renderer.DependencyManagementRenderer.renderDependenciesForA
      llScopes(DependencyManagementRenderer.java:147)
              at org.apache.maven.report.projectinfo.dependencies.renderer.DependencyManagementRenderer.renderSectionProjectDe
      pendencies(DependencyManagementRenderer.java:140)
              at org.apache.maven.report.projectinfo.dependencies.renderer.DependencyManagementRenderer.renderBody(DependencyM
      anagementRenderer.java:126)
              at org.apache.maven.reporting.AbstractMavenReportRenderer.render(AbstractMavenReportRenderer.java:79)
              at org.apache.maven.report.projectinfo.DependencyManagementReport.executeReport(DependencyManagementReport.java:
      115)
              at org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:190)
              at org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument(ReportDocumentRenderer.java:165)
              at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(DefaultSiteRenderer.java:330)
              at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(DefaultSiteRenderer.java:134)
              at org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:159)
              at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:122)
              at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107)
              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:195)
              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:140)
              at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
              at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
              at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
              at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
              at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
              at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:153)
              at org.apache.maven.cli.MavenCli.execute(MavenCli.java:451)
              at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:188)
              at org.apache.maven.cli.MavenCli.main(MavenCli.java:134)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
              at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
              at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
              at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
      Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Failure to find org.springframework.webflow:sprin
      g-binding:pom:${org.springframework.webflow.version} in https://repo.foo.bar.com/content/groups/foo-bar-group was cach
      ed in the local repository, resolution will not be reattempted until the update interval of foo-bar has elapsed or u
      pdates are forced
              at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:499)
              at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:187)
              at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:251)
              ... 37 more
      Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Failure to find org.springframework.webflow:spring-bi
      nding:pom:${org.springframework.webflow.version} in https://repo.foo.bar.com/content/groups/foo-bar-group was cached i
      n the local repository, resolution will not be reattempted until the update interval of foo-bar has elapsed or updat
      es are forced
              at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.checkArtifact(DefaultUpdateCheckManager.java:186)
      
              at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:381)
              ... 39 more
      

      [2] pom.xml fragment

            <plugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-site-plugin</artifactId>
              <version>3.0-beta-3</version>
              <executions>
                <execution>
                  <id>attach-descriptor</id>
                  <goals>
                    <goal>attach-descriptor</goal>
                  </goals>
                </execution>
              </executions>
              <configuration>
                <reportPlugins>
                  <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-project-info-reports-plugin</artifactId>
                    <version>2.3.1</version>
                    <configuration>
                      <dependencyDetailsEnabled>false</dependencyDetailsEnabled>
                      <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
                    </configuration>
                    <reports>
                      <report>index</report>
                      <report>dependencies</report>
                      <report>dependency-convergence</report>
                      <report>dependency-management</report>
                      <report>plugin-management</report>
                      <report>plugins</report>
                      <report>project-team</report>
                      <report>summary</report>
                    </reports>
                  </plugin>
                </reportPlugins>
              </configuration>
            </plugin>
      

      Attachments

        Issue Links

          Activity

            People

              ltheussl Lukas Theussl
              sslavic Stevo Slavić
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: