jaxb2-maven-plugin icon indicating copy to clipboard operation
jaxb2-maven-plugin copied to clipboard

FileNotFoundException when plugin executed twice on Jenkins.

Open sajanssens opened this issue 3 years ago • 1 comments

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?

sajanssens avatar Jan 19 '22 09:01 sajanssens