title: Create two artifacts (war) for a single maven project
body: <p>I have a Java web project that we deploy on the server of two different customers, 99% of the code is the same, right now I have two ApplicationBuilders, which is the class that contains the customization for each customer.</p>
  
  <p>Anytime I want to deploy the new version I have to manually comment a line, build (with maven), uncomment that line, comment the other one and build again.</p>
  
  <pre><code>public class ApplicationBuilderFactory {
      private static final IApplicationBuilder app;
  
      static {
  //            app = new Customer1ApplicationBuilder()
              app = new Customer2ApplicationBuilder();
          }
      }
  
      public static IApplicationBuilder get() { return app; }
  }
  </code></pre>
  
  <p>I want to avoid all this and the best thing would probably just create two different wars.</p>
  
  <p>What's a good way to do this? I don't use (nor like) dependency injection frameworks and it seems overkill to add one just for a single class, but I may consider it.</p>