You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@netbeans.apache.org by Jeff <pr...@gmail.com> on 2019/07/26 17:28:12 UTC

Help w/ Maven project warning: 'system' scoped dependency was not found.

Setup: Netbeans 11.1 + Oracle JDK 12.02 with project building with JDK 1.8.

I have a multi-module project and 2 of the modules show this 'warning'
about a system-scoped dependency not found but I don't include any specific
system scoped dependencies.

If I run the 'mvn dependency:tree -Dverbose'  command the only 'system'
dependency that is listed is:

[INFO] |  |  \- sun.jdk:rt.jar:jar:1.8:system


Yet in my Java Dependencies (shown by NetBeans), under the JDK 1.8 node,
rt.jar is listed (assuming that is the one it is needing).

Anyone else seen something like this or know how to resolve it?  Clicking
the "Resolve..." button doesn't seem to do anything obvious.

Thanks!

[image: image.png]

[image: image.png]

Re: Help w/ Maven project warning: 'system' scoped dependency was not found.

Posted by Jeff <pr...@gmail.com>.
Forgot images may not go through.

The warning text from the "Resolve Project Problems" dialog are:

A 'system' scope dependency was not found. Code completion is affected.

There is a 'system' scoped dependency in the project but the path to the
binary is not valid.
Please check that the path is absolute and points to an existing binary.

 But beyond what the dependency:tree output showed it isn't obvious what it
is looking for.

Thanks!

On Fri, Jul 26, 2019 at 11:28 AM Jeff <pr...@gmail.com> wrote:

> Setup: Netbeans 11.1 + Oracle JDK 12.02 with project building with JDK 1.8.
>
> I have a multi-module project and 2 of the modules show this 'warning'
> about a system-scoped dependency not found but I don't include any specific
> system scoped dependencies.
>
> If I run the 'mvn dependency:tree -Dverbose'  command the only 'system'
> dependency that is listed is:
>
> [INFO] |  |  \- sun.jdk:rt.jar:jar:1.8:system
>
>
> Yet in my Java Dependencies (shown by NetBeans), under the JDK 1.8 node,
> rt.jar is listed (assuming that is the one it is needing).
>
> Anyone else seen something like this or know how to resolve it?  Clicking
> the "Resolve..." button doesn't seem to do anything obvious.
>
> Thanks!
>
> [image: image.png]
>
> [image: image.png]
>