1

We package only Perl and shell scripts in an rpm.We use maven to build the rpm. I would like to know if there is a way to prevent the rpm from compiling successfully when there are syntax errors in the perl/shell scripts.

C/C++/Java code does not get compiled when there are syntax errors, this also prevents the rpm from getting built successfully. Perl/shell being interpreted does not work this way.Is there a way to handle this in pom/Maven?

1 Answers1

0

You can use, as mentioned in "I want to execute shell commands from maven's pom.xml", the exec-maven-plugin to execute a command.

In your case, that command could be a script in charge of

Add that step before the one compiling npm, and said npm compilation won't be executed unless the perl syntax checks out.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250