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
WINDUP-1298: Really don't make network calls in offline #1072
Conversation
Provided it doesn't fail the run, I think it's ok. |
Yeah, I think bundling maven xsds would make sense. |
Yeah, seems like we will get "XML File is not valid" hits on every app now. How was it making calls after the "return null;" before? |
The xerces resolver would call this one and if it returned null, then it would try to resolve it itself if it looked like a URL. I think it treats "null" as an indication that a resolver doesn't know how to resolve a particular type rather than as an indication of failure. I'm going from reading the implementation, though, rather than from reading docs as I haven't seen clear documentation on this. |
It looks like this will break a few tests because of increasing the number of failures. |
Don't really love spitting out clsf/hint everywhere that XML files are not valid when we didn't try to validate them. Kind of prefer your suggestion above, that we just not run this rule if we're offline. |
So maybe catch the exception somewhere up and just print a log message? |
I think this should not be returning null it just gives a chance to others resolvers in chain. We need to skip the rule completely. |
looks good here |
This is still a little weird, as this creates some validation errors on poms and things like that. I really wonder if we should just skip this rule entirely in offline.