Bukama commented on PR #80:
URL: 
https://github.com/apache/maven-jdeprscan-plugin/pull/80#issuecomment-4877316613

   If I force the locale to be English it works. This makes sense as further 
analyses show that the regex used to detect deprecated classes/methods is 
English
   
   ```
    public static final Pattern DEPRECATED_CLASS = Pattern.compile("^class 
(\\S+) uses deprecated class (\\S+)");
   
       public static final Pattern DEPRECATED_METHOD = Pattern.compile("^class 
(\\S+) uses deprecated method (\\S+)");
   ```
   
   So a correct fix would be to add commandline options to the call
   
   ```
           cmd.createArg().setValue("-J-Duser.language=en");
           cmd.createArg().setValue("-J-Duser.country=US");
   ```


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