I am trying to build my first groovy project with maven but I am getting the following error from maven.. its somettype of source error but Idont understand why I am getting it.
You will have to define project and bind to mavenProject if you are using script rather than inline.
def project = ${project}; // this will bind to the Maven Project property.
likewise
def session = ${session} //will bind to MavenSession
Source - Look for custom properties