title: Maven - execute method before packaging
body: <p>I have a Maven project with Spring Boot application. </p>
  
  <p>There is some class with some method in application. This method create some new files in application folder using some complicated logic. After application is deployed it is using this files while running. </p>
  
  <p>Presently I execute this method manualy rigth before packaging and deploying of application. I want to automatize this process - I want Maven execute this method before packaging.</p>
  
  <p>Is it possible? How?</p>