jaxb2-maven-plugin
jaxb2-maven-plugin copied to clipboard
FileNotFoundException when plugin executed twice on Jenkins.
Hello!
We have an issue with the jaxb2-maven-plugin.
We have a multi module maven project including (among others) multiple schema generation modules. When we build this project locally (either on windows with maven or in a docker container (image 'maven:3.8.4-jdk-11')), everything succeeds. But, when we build the project on Jenkins, the first schema generation module succeeds, but the second fails with:
java.io.FileNotFoundException: /var/jenkins_home/workspace/external-bss_spring_boot/var/jenkins_home/workspace/external-bss_spring_boot/bssSupplementary-schema/src/main/resources/supplementaryInt.wsdl (No such file or directory)
When we change the order of the modules, we see that the second one always fails.
As you can see, it prepends the project root path twice, which is incorrect.
Any idea what is wrong here?