Hmm, seems that the messages of the maven JSLint plug-in use a different warnings format. You need to choose the parser "Javac".
Ulli Am 08.03.2013 um 16:32 schrieb John Smith <forward.my.mai...@gmail.com>: > Actually..... > > I've added the following to the parent POM > > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-compiler-plugin</artifactId> > <configuration> > <showDeprecation>true</showDeprecation> > <showWarnings>true</showWarnings> > </configuration> > </plugin> > > but I keep getting the following exception at the end of my build: > > [WARNINGS] Parsing warnings in console log with parser JSLint ERROR: > Publisher hudson.plugins.warnings.WarningsPublisher aborted due to exception > org.kohsuke.stapler.framework.io.IOException2: org.xml.sax.SAXParseException: > Content is not allowed in prolog. at > hudson.plugins.warnings.parser.JSLintParser.parse(JSLintParser.java:61) at > hudson.plugins.warnings.parser.ParserRegistry.parse(ParserRegistry.java:313) > at > hudson.plugins.warnings.parser.ParserRegistry.parse(ParserRegistry.java:292) > at > hudson.plugins.warnings.WarningsPublisher.parseConsoleLog(WarningsPublisher.java:352) > > > Any ideas? > > > On Fri, Mar 8, 2013 at 12:12 PM, John Smith <forward.my.mai...@gmail.com> > wrote: > <embarrassed> > > Sorry I completely missed your reply - something to do with the way I've set > gmail to forwards message I think :-/ > > My fault > > </embarrassed> > > I this looks like a viable workaround. I was hoping to use the Violations > plug in simply because I'm already using it for Java Code in the same > project. That said, there is no particular reason why I have to use the > Violations plugin .... > > Thanks for your advice - I'll give it a go. > > > > > > On Fri, Mar 8, 2013 at 10:10 AM, Ulli Hafner <ullrich.haf...@gmail.com> wrote: > Didn't the answer to your previous thread help? > > http://jenkins.361315.n4.nabble.com/Q-How-to-use-Maven-JSLint-plugin-with-Jenkins-Violation-Plugin-tp4658337p4658374.html > > Am 08.03.2013 um 10:57 schrieb John Smith <forward.my.mai...@gmail.com>: > >> Hi, >> >> Does anybody know how to integrate the "jslint-maven-plugin" from >> "org.codehaus.mojo" with the Jenkins Violations plug-in? >> >> My current situation is that I've configured jslint-maven-plugin as part of >> my maven build. Errors are being written to standard output, so that's the >> console. In Jenkins I'd going to need to tell the plugin which file contains >> the list of violations. The trouble is errors are not in a file. >> >> So how to I bridge the gap? >> >> Thanks >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Jenkins Users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to jenkinsci-users+unsubscr...@googlegroups.com. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> > > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to jenkinsci-users+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > > > > > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to jenkinsci-users+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.