When a SNAPSHOT artifact is built (packaging = 'war'), its downstream project building a WAR-overlay depending on the upstream SNAPSHOT is not triggered.
A test project (maven_war_overlay_project) with the described behaviour is available in the test_maven_projects directory on the fork in https://github.com/benzht/pipeline-maven-plugin/tree/JENKINS-50099 under the test_maven_projects (due to time constraints I could not integrate it into the test suite....).
The new test project, maven_war_overlay_project, depends on the existing maven_war_project, which in turn depends on maven_jar_project.
After manually building all of them, building the first correctly triggers the second, but maven_war_overlay_project is not triggered.
Looking at the logging, it becomes clear that in the war_overlay_project no dependency is detected.
Output from maven_war_project correctly records its dependency:
Output from maven_war_overlay_project does not record any dependeny:
Jenkinsfile of maven_war_overlay_project: