Re: 'mvn clean test' crashes

2020-10-09 Thread Tibor Digaňa
Hi Mukul, the problem with System.exit() can be in a library - dependency, not only in your code and therefore the system manager has to be configured in system property in order to find and confirm the hypothesis. T Dňa pi 9. 10. 2020, 18:01 Enrico Olivelli napísal(a): > Something like this: >

Re: 'mvn clean test' crashes

2020-10-09 Thread Enrico Olivelli
Something like this: public class NoExitSecurityManager extends SecurityManager { private final SecurityManager wrapped; public static void setup() { Policy.setPolicy(new Policy() { final Permissions pc = new Permissions(); { pc.add(new

[ANN] Maven Resolver 1.6.1 released

2020-10-09 Thread Michael Osipov
The Apache Maven team is pleased to announce the release of the Maven Resolver version 1.6.1. https://maven.apache.org/resolver/ Release Notes - Maven Resolver - Version 1.6.1 ** Sub-task * [MRESOLVER-139] - Make SimpleDigest use SHA-1 or MD5 only * [MRESOLVER-140] - Default to SHA-1

Re: 'mvn clean test' crashes

2020-10-09 Thread Mukul Gandhi
On Wed, Oct 7, 2020 at 9:09 PM Enrico Olivelli wrote: > A good approach to workaround the presence of third party libraries that > call System.exit is to set a SecurityManager that prevents calls to > System.exit. I'll find it helpful, if you may share any code sample how to do this? --