I have what seems angular for Eclipse / Maven and "Allow workspace project dependencies." My project contains a combination of the written code and the generated code, with the generated code coming from a dependency that uses JAXWS.
The problem is that if I check "Allow Dependencies", Eclipse / Maven ignores any JAR dependencies and tries to resolve everything only by looking at the workspace, which leads to Eclipse showing errors like "Package / Class not found" (linked to the generated code), even if the project will build perfectly with Maven from the command line.
On the other hand, if I take it off, it will resolve everything just by looking at the JARs in the Maven repository. The second option usually works, but when I do something like Ctrl-click on a class or variable, I get a class file editor and "Source not found", which is not very useful. In addition, it may go out of sync if I edit the code in the IDE, but after that I do not run "maven install".
I believe this is basically a nuisance with Eclipse, but it is annoying. I consider this solution by modifying Maven dependencies to create using the source (or debugging), but I can't do it with everything. The option "Allow Dependencies" is designed to work exclusively anyway, as I described?
source share