Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generation of JAX-B classfiles skipped #19

Closed
severinstrobl opened this issue Mar 1, 2018 · 1 comment · Fixed by #20
Closed

Generation of JAX-B classfiles skipped #19

severinstrobl opened this issue Mar 1, 2018 · 1 comment · Fixed by #20

Comments

@severinstrobl
Copy link
Contributor

Due to an implementation detail of findWsdl(), the first WSDL file found in mavenProject.getBasedir() is selected:

Optional<File> wsdl = wsdls.stream().findFirst();

This location is then passed on to isWsdlLocatedInMainResources() which tests the path for the occurrence of "/main/" || "\main\" in order to determine if the Java code should be generated. This test fails in some cases due to FileUtils.listFiles() not guaranteeing any specific order. In my case, a copy of the WSDL file in the output directory is returned as the first entry, leading to a failure of the test. As a consequence, steps 2 and 3 are skipped altogether and no code is generated.

As a fix, in addition to testing for "/main/" || "\main\", the path check should also exclude any files in the output directory.

@jonashackt
Copy link
Member

Hey @severinstrobl, I will release the plugin soon, so you could use it in your projects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants