Skip to content

Not finding javax.*, org.apache.*, or other deps (Maven) (VS Code) #222

Open
@danieljsummers

Description

@danieljsummers

First up, what a great project! It's enabled me to use a modern language on a legacy system (Java 6 EE), and really enhanced my productivity - so much so, I've been ignoring this for months! 👍

The short version: VS Code with the plug-in is not resolving anything outside the set of local projects we have. java.* works fine, but javax.* (which I use a lot for HttpServletRequest and HttpServletResponse), org.apache.*, etc., do not. I suspect it's a configuration thing, but I've tried everything I know to try.

A little background about the environment: the "project" I'm working on is actually a collection of projects; there's a parent POM, and then each one is dependent on it. There is also a separate tree (the "dist pattern," as the comments say, though I'd never heard of that) with a separate set of parent/child POMs. The ones in the actual source tree did not used to actually build the project successfully, but I went through and got them all set so that mvn -o package actually works, thinking that this might fix it, but it didn't.

At any rate, I'd be happy to help supply more information. As you may have surmised by the -o parameter, our dependencies are vendored (closed network), so I can't create a public repo with the code. (I had to briefly connect the machine to a commercial network to download the language server!)

Thanks again for this; it's been a lifesaver!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdependency resolutionRelated to the project dependency/standard library resolvermavenRelated to the language server's support for Maven projects

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions