maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hervé Boutemy (Jira) <j...@apache.org>
Subject [jira] [Comment Edited] (MPIR-373) Upgrade from 2.9 to 3.0.0 introduces additional warning
Date Tue, 20 Aug 2019 06:26:00 GMT

    [ https://issues.apache.org/jira/browse/MPIR-373?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16911029#comment-16911029
] 

Hervé Boutemy edited comment on MPIR-373 at 8/20/19 6:25 AM:
-------------------------------------------------------------

this PR is a workaround to make the issue less visible: nice to have if we are not able to
fix really this issue shortly (I like that it does not fuly swallow the issue, but makes it
less visible, even if it may hide other types of issues than this extra field)

the real fix I'd expect would be something about the internal Maven API used to load dependencies
POM: IIUC, it should not be ProjectBuilder, since ProjectBuilder is intended for project's
POMs that will really run the Maven build (and that explains that there is a failure: this
extra field is not intended to be present on the pom.xml you have in scm for your projects).

I don't master precisely which API is expected to be used to just import a dependency model:
[~rfscholte] , IIRC, you worked on clarifying this, isn't it?


was (Author: hboutemy):
this PR is a workaround to make the issue less visible: nice to have if we are not able to
fix really this issue shortly

the real fix I'd expect would be something about the internal Maven API used to load dependencies
POM: IIUC, it should not be ProjectBuilder, since ProjectBuilder is intended for project's
POMs that will really run the Maven build (and that explains that there is a failure: this
extra field is not intended to be present on the pom.xml you have in scm for your projects).

I don't master precisely which API is expected to be used to just import a dependency model:
[~rfscholte] , IIRC, you worked on clarifying this, isn't it?

> Upgrade from 2.9 to 3.0.0 introduces additional warning
> -------------------------------------------------------
>
>                 Key: MPIR-373
>                 URL: https://issues.apache.org/jira/browse/MPIR-373
>             Project: Maven Project Info Reports Plugin
>          Issue Type: Bug
>    Affects Versions: 3.0.0
>            Reporter: GWR
>            Assignee: Michael Osipov
>            Priority: Minor
>             Fix For: 3.0.1
>
>         Attachments: pom.xml
>
>
> a new warning-message introduced, causing some confusion in the devteam.
> When stepping up to maven-project-info-reports-plugin:3.0.0 (from2.9) the stacktrace
below  is seen.  
> mvn3.0.5, 3.3.9 and 3.5.2 all give same stacktrace.
> Seems to caused by the xml-resolver:1.2, having a pom.xml containing the section.
> <distributionManagement.status>
> {code:java}
>   <distributionManagement>
>     <status>deployed</status>
>   </distributionManagement>
> {code}
> Is there some more restrictive pom validation introduced with maven-project-info-reports-plugin:3.0.0
> {code:java}
> $ mvn project-info-reports:dependencies
> [WARNING] Unable to create Maven project from repository for artifact xml-resolver:xml-resolver:jar:1.2
> org.apache.maven.project.ProjectBuildingException: Some problems were encountered while
processing the POMs:
> [ERROR] 'distributionManagement.status' must not be specified. @ line 36, column 13
>     at org.apache.maven.project.DefaultProjectBuilder.build (DefaultProjectBuilder.java:191)
>     at org.apache.maven.project.DefaultProjectBuilder.build (DefaultProjectBuilder.java:326)
>     at org.apache.maven.report.projectinfo.dependencies.RepositoryUtils.getMavenProjectFromRepository
(RepositoryUtils.java:125)
>     at org.apache.maven.report.projectinfo.dependencies.renderer.DependenciesRenderer.printDescriptionsAndURLs
(DependenciesRenderer.java:890)
>     at org.apache.maven.report.projectinfo.dependencies.renderer.DependenciesRenderer.printDependencyListing
(DependenciesRenderer.java:847)
>     at org.apache.maven.report.projectinfo.dependencies.renderer.DependenciesRenderer.printDependencyListing
(DependenciesRenderer.java:867)
>     at org.apache.maven.report.projectinfo.dependencies.renderer.DependenciesRenderer.printDependencyListing
(DependenciesRenderer.java:867)
>     at org.apache.maven.report.projectinfo.dependencies.renderer.DependenciesRenderer.printDependencyListing
(DependenciesRenderer.java:867)
>     at org.apache.maven.report.projectinfo.dependencies.renderer.DependenciesRenderer.renderSectionDependencyTree
(DependenciesRenderer.java:486)
>     at org.apache.maven.report.projectinfo.dependencies.renderer.DependenciesRenderer.renderSectionProjectDependencyGraph
(DependenciesRenderer.java:449)
>     at org.apache.maven.report.projectinfo.dependencies.renderer.DependenciesRenderer.renderBody
(DependenciesRenderer.java:222)
>     at org.apache.maven.reporting.AbstractMavenReportRenderer.render (AbstractMavenReportRenderer.java:80)
>     at org.apache.maven.report.projectinfo.DependenciesReport.executeReport (DependenciesReport.java:162)
>     at org.apache.maven.reporting.AbstractMavenReport.generate (AbstractMavenReport.java:251)
>     at org.apache.maven.report.projectinfo.AbstractProjectInfoReport.execute (AbstractProjectInfoReport.java:220)
>     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:62)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke (Method.java:498)
>     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.apache.maven.model.building.ModelBuildingException: 1 problem was encountered
while building the effective model for xml-resolver:xml-resolver:1.2
> [ERROR] 'distributionManagement.status' must not be specified. @ line 36, column 13
>     at org.apache.maven.model.building.DefaultModelProblemCollector.newModelBuildingException
(DefaultModelProblemCollector.java:197)
>     at org.apache.maven.model.building.DefaultModelBuilder.build (DefaultModelBuilder.java:481)
>     at org.apache.maven.model.building.DefaultModelBuilder.build (DefaultModelBuilder.java:423)
>     at org.apache.maven.model.building.DefaultModelBuilder.build (DefaultModelBuilder.java:413)
>     at org.apache.maven.project.DefaultProjectBuilder.build (DefaultProjectBuilder.java:157)
>     at org.apache.maven.project.DefaultProjectBuilder.build (DefaultProjectBuilder.java:326)
>     at org.apache.maven.report.projectinfo.dependencies.RepositoryUtils.getMavenProjectFromRepository
(RepositoryUtils.java:125)
>     at org.apache.maven.report.projectinfo.dependencies.renderer.DependenciesRenderer.printDescriptionsAndURLs
(DependenciesRenderer.java:890)
>     at org.apache.maven.report.projectinfo.dependencies.renderer.DependenciesRenderer.printDependencyListing
(DependenciesRenderer.java:847)
>     at org.apache.maven.report.projectinfo.dependencies.renderer.DependenciesRenderer.printDependencyListing
(DependenciesRenderer.java:867)
>     at org.apache.maven.report.projectinfo.dependencies.renderer.DependenciesRenderer.printDependencyListing
(DependenciesRenderer.java:867)
>     at org.apache.maven.report.projectinfo.dependencies.renderer.DependenciesRenderer.printDependencyListing
(DependenciesRenderer.java:867)
>     at org.apache.maven.report.projectinfo.dependencies.renderer.DependenciesRenderer.renderSectionDependencyTree
(DependenciesRenderer.java:486)
>     at org.apache.maven.report.projectinfo.dependencies.renderer.DependenciesRenderer.renderSectionProjectDependencyGraph
(DependenciesRenderer.java:449)
>     at org.apache.maven.report.projectinfo.dependencies.renderer.DependenciesRenderer.renderBody
(DependenciesRenderer.java:222)
>     at org.apache.maven.reporting.AbstractMavenReportRenderer.render (AbstractMavenReportRenderer.java:80)
>     at org.apache.maven.report.projectinfo.DependenciesReport.executeReport (DependenciesReport.java:162)
>     at org.apache.maven.reporting.AbstractMavenReport.generate (AbstractMavenReport.java:251)
>     at org.apache.maven.report.projectinfo.AbstractProjectInfoReport.execute (AbstractProjectInfoReport.java:220)
>     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:62)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke (Method.java:498)
>     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)
> {code}



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Mime
View raw message