Build an OpenWayback WAR Overlay

WAR overlays keep custom code separate from upstream OpenWayback.

Steps

  1. mvn archetype:generate -DgroupId=org.example.wayback -DartifactId=wayback-overlay -DarchetypeArtifactId=maven-archetype-webapp
  2. Add dependencies:
    <dependency>
      <groupId>org.netpreserve.openwayback</groupId>
      <artifactId>openwayback-webapp</artifactId>
      <version>2.4.1</version>
      <type>war</type>
      <scope>runtime</scope>
    </dependency>
  3. Configure the Maven WAR plugin with overlays.
  4. Place your custom WEB-INF/wayback.xml or JSP files under src/main/webapp.
  5. Build:
    mvn package

Diagram

  flowchart LR
    A[Base WAR] --> B[Overlay project]
    B --> C[Custom WAR]

Deploy the overlay WAR to Tomcat and keep your Git repo limited to the diff you manage.