Falko Modler created MENFORCER-314:
--------------------------------------

             Summary: 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
         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


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)

Reply via email to