-
Notifications
You must be signed in to change notification settings - Fork 37
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
WsImportMojo: warning "cannot find file for" for test artefacts #15
Comments
I don't understand. All (direct) dependencies of a project should be accessible regardless of scope, so why shouldn't this warning be emitted for test, provided, and optional dependencies? |
An artefact with scope 'test' is not in the classpath except you run unit tests ( Every build warns that an artefact file cannot be found otherwise. |
But I don't understand why the artifact can't be found. Can you provide a test project for this scenario? |
sample-project.zip |
OK, I see the issue. Actually I think that there is a bug in the code where all dependencies are used on the Classloader classpath when getting the wsdl files. Test scoped dependencies should only be used in wsimport-test, not in wsimport. |
This warning (like 587 in
getWSDLFiles
) should not be emitted for artefacts that use scopetest
orprovided
or whereoptional=true
is set.See
Artifact.isOptional()
andArtifact.SCOPE_TEST.equals( artifact.getScope() )
resp.Artifact.SCOPE_PROVIDED.equals( artifact.getScope() )
.If you want, I can provide a PR
The text was updated successfully, but these errors were encountered: