Just a wild guess, but try to prepend ${project.basedir}/ to src/main/java.
Jenkins usually launches mvn using mvn -f <path to pom> whereas in local you usually launch maven directly in the project directory. Vincent 2015-07-27 19:30 GMT+02:00 Ade <adrian.harrison...@gmail.com>: > Maven, any ideas? > > On Friday, 24 July 2015 07:50:28 UTC+1, Baptiste Mathus wrote: >> >> Freestyle or maven job? >> Le 23 juil. 2015 1:20 PM, "Ade" <adrian.ha...@gmail.com> a écrit : >> >>> sorry forgot to include, using - >>> >>> Apache Maven 3.3.1 >>> Java version: 1.8.0_51 >>> Jenkins: 1.621 >>> >>> -- >>> 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/9d32318c-aaba-48fb-9551-42f800a2ee07%40googlegroups.com >>> <https://groups.google.com/d/msgid/jenkinsci-users/9d32318c-aaba-48fb-9551-42f800a2ee07%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- > 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. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/0f0ba15a-09d0-4164-973b-f5ea323ba1d8%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-users/0f0ba15a-09d0-4164-973b-f5ea323ba1d8%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAH-zGCjFMho9eE2ScYTeyBAZSo2MVq%2BFy%2BXkt%3DqiT-FbyhfQcw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.