title: how do you access azure pipelines variables in a java maven project?
body: <p>We have an existing java app in an azure pipline which we're trying to add using variables in. I have mostly a Java background and am pretty new to ADO and azure pipelines. I've read the docs on azure pipeline variables but don't see how to get these variables in the java app. The docs say that the variables can be used as input to a task, and also are made available to scripts through environment variables.  </p>
  
  <p>This project is a maven project; the first task is maven 'clean install', so is there a way to inject the ADO pipeline variable into the maven build, and then somehow have maven turn it into a System property or environment variable which the program can access via System.getPropert() or System.genenv()?</p>