I have built one solution for my application and in order to detect errors from frontend packages, I have done another application which throws an error and gives exit code 1 if something is wrong.
For that I used
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.2.0</version>
to execute the program in maven.
The problem is that when my exit code is 1 (When I throw the error), the maven build don't stop.
Is there an option to stop the maven process if process failed?