Build an OpenWayback WAR Overlay
WAR overlays keep custom code separate from upstream OpenWayback.
Steps
mvn archetype:generate -DgroupId=org.example.wayback -DartifactId=wayback-overlay -DarchetypeArtifactId=maven-archetype-webapp- Add dependencies:
<dependency> <groupId>org.netpreserve.openwayback</groupId> <artifactId>openwayback-webapp</artifactId> <version>2.4.1</version> <type>war</type> <scope>runtime</scope> </dependency> - Configure the Maven WAR plugin with overlays.
- Place your custom
WEB-INF/wayback.xmlor JSP files undersrc/main/webapp. - 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.