16

I have a maven execution that runs a javascript compressor as a command line program, however, this tool also does some jslint checks as well.

If these jslint checks fail so should my build.

These errors are output as a parseable string to stdout.

If this maven plugin cannot solve this problem, I'm happy to use any other suggested.

Thanks.

Pascal Thivent
  • 562,542
  • 136
  • 1,062
  • 1,124
Nathan Feger
  • 19,122
  • 11
  • 62
  • 71

1 Answers1

15

To my knowledge, exec:exec will fail the build if the return code of the executed command is not 0 (or one of the configured successCodes). Maybe you can build something around this.

As an alternative, have a look at these plugins, they both can fail a build on problems:

Depending on what you need exactly, there is also the Maven Javascript Plugin.

And also have a look at this Maven plugins for javascript question.

PaoloC
  • 3,817
  • 1
  • 23
  • 27
Pascal Thivent
  • 562,542
  • 136
  • 1,062
  • 1,124