Step #6 at https://confluence.atlassian.com/display/JIRA/Building+JIRA+from+Sourcehas the dependencies that you need to install and how to install them.
Answer: https://answers.atlassian.com/questions/68542/building-jira-5-1-from-source-build-error.
It looks like you're new here. Sign in or register to get started.