title: Is it possible to set a maven property from ant?
body: <p>I tried to use the maven-antrun-plugin to check in a first execution if a file exists and then set a property accordingly. In another execution (another phase) of the antrun-plugin I want to make use of the property. But the property set in one execution cannot be used in another execution since it's an ant and not a maven property and doesn't get propagated.</p>
  
  <p>Is it possible to propagate the ant property to maven or in other words set a maven property from ant?</p>
  
  <p>Using another Maven build like in <a href="https://stackoverflow.com/questions/2848742/change-properties-in-pom-xml-at-runtime-with-maven-ant-tasks-is-it-possible">this question</a> is not an option.</p>
  
  <p>Another way that might work somehow would be an external build.xml but that's not an option too, because I have to keep things in one pom.</p>
  
  <p>I've read about using <a href="https://stackoverflow.com/questions/4040778/parent-properties-inside-maven-antrun-plugin">GMaven</a> to set a Maven property but I would like to stay with ant.</p>