You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Enrico Olivelli (JIRA)" <ji...@apache.org> on 2019/02/03 20:30:00 UTC

[jira] [Resolved] (MENFORCER-314) DependencyConvergence fails sporadically with a null message

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

Enrico Olivelli resolved MENFORCER-314.
---------------------------------------
    Resolution: Fixed

committed as 9bf2bac4447a7663cf26defb957610a6d9bd28eb

> DependencyConvergence fails sporadically with a null message
> ------------------------------------------------------------
>
>                 Key: MENFORCER-314
>                 URL: https://issues.apache.org/jira/browse/MENFORCER-314
>             Project: Maven Enforcer Plugin
>          Issue Type: Bug
>          Components: Standard Rules
>    Affects Versions: 1.4.1, 3.0.0-M1
>         Environment: Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T17:41:47+01:00)
> Java version: 1.8.0_162, vendor: Oracle Corporation
>            Reporter: Falko Modler
>            Assignee: Enrico Olivelli
>            Priority: Major
>             Fix For: 3.0.0
>
>
> Our Jenkins builds fail sporadically without providing a message:
> {noformat}
> 17:08:28 [WARNING] Rule 4: org.apache.maven.plugins.enforcer.DependencyConvergence failed with message:
> 17:08:28 null
> {noformat}
> Looking at the code, I suspect that this can happen [on line 132 of the rule|https://github.com/apache/maven-enforcer/blob/enforcer-3.0.0-M2/enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/DependencyConvergence.java#L132] when some underlying exception is caught which itself does not provide a (localized) message.
> As the plugin [does not include the cause|https://github.com/apache/maven-enforcer/blob/enforcer-3.0.0-M2/maven-enforcer-plugin/src/main/java/org/apache/maven/plugins/enforcer/EnforceMojo.java#L212] (unless {{failFast}} is set), you will just see a null message.



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