title: Bean Validation + JAX-RS not reading custom ValidationMessages.properties
body: <p>I am trying to use custom messages with Bean Validation but my custom messages are not being returned by the JAX-RS resource. What am I doing wrong?</p>
  
  <h2>ValidationMessages.properties</h2>
  
  <pre><code>invoice.value.notnull=Invoice value must be informed.
  </code></pre>
  
  <p>The file is located at <code>src/main/resources</code></p>
  
  <p><a href="https://i.stack.imgur.com/WJB5J.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WJB5J.png" alt="enter image description here"></a></p>
  
  <h2>InvoiceResource.java</h2>
  
  <pre><code>@Path("/invoice")
  public class InvoiceResource {
  
      @POST
      public void post(@Valid InvoiceRequest request) {
          /* stuff */
      }
  
  }
  </code></pre>
  
  <h2>InvoiceRequest.java</h2>
  
  <pre><code>public class InvoiceRequest {
  
      @NotNull(message = "invoice.value.notnull")
      private Double value;
  
  }
  </code></pre>