If you are using Gradle, it is easy to create an overlay project using standard Gradle means. Here is an example build.gradle
:
apply plugin: 'war'
repositories {
mavenCentral()
}
configurations {
overlay {
transitive = false
}
}
dependencies {
overlay('org.mitre:openid-connect-server-webapp:1+')
}
war {
duplicatesStrategy = 'exclude'
configurations.overlay.filter({it.name.endsWith(".war")}).each {
from zipTree(it)
}
}