title: Exclude Java Source using Spring Boot Maven Plugin at Build time
body: <p>I have a requirement to exclude certain Java source files from being compiled as part of the final build when running the Maven build.</p>
  
  <p>I am using Spring Boot Maven plugin in my Spring Boot based project.</p>
  
  <p>I am looking for a way to exclude Java source files from being compiled and corresponding Junit test classes also need to be excluded from the final build at build time.</p>
  
  <p>Is there a way to achieve the same using the Spring Boot Maven Plugin?</p>