title: Spring Boot - Disable embedded ElasticSearch without removing code or changing POM
body: <p>I'm looking for a way to prevent ElasticSearch for starting (embedded or separate server) in a Spring Boot project. ES is currently not in use, but will be at a later stage in the project.</p>
  
  <p>If I remove the lines from the POM, my code needs major updates, because all annotations to ES cannot be found anymore.</p>
  
  <p>Is there a way I can keep my project intact, but prevent ES from launching (embedded)?</p>
  
  <p>My goal is to speed up restarts for the time being, when ES is not in use.</p>
  
  <p>Or course, I could also run ES as a separate server, but I don't want to spend the time.</p>
  
  <p>Thanks</p>