elharo opened a new issue, #520:
URL: https://github.com/apache/maven-ear-plugin/issues/520

   ## Description
   
   In `ResourceRef.java:74-75`, the error message uses the wrong constant:
   
   ```java
   } else if ((type == null || type.isEmpty()) && (auth == null || 
auth.isEmpty())) {
       throw new IllegalArgumentException(RESOURCE_TYPE + " in " + 
RESOURCE_REF_NAME + " element cannot be null ");
   }
   ```
   
   `RESOURCE_REF_NAME` is `"res-ref-name"` but the message should refer to the 
`"resource-ref"` element. The correct constant would be `RESOURCE_REF` which is 
`"resource-ref"`.
   
   ## Expected behavior
   
   Use `RESOURCE_REF` instead of `RESOURCE_REF_NAME`:
   
   ```java
   throw new IllegalArgumentException(RESOURCE_TYPE + " in " + RESOURCE_REF + " 
element cannot be null");
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to