Using a simple freestyle job, just add a first step to check the pom.xml (use what works best for you: shell, ant...), then call the typical mvn build.
A failing step will fail the whole build immediately (hence not call the mvn build in that example)
Cheers
--
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-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/cce35d18-7cd0-4f6d-884f-bb18ad2bd8a8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.