Tuesday 16 August 2016

Friend Dependancy on netbeans core

The nbm-maven plugin will sometimes give this error:

Module has friend dependency on org.netbeans.core but is not listed as a friend. -> [Help 1]

This is not the real error, and you can take ages finding it.


To list the real error, put <verifyRuntime>warn</verifyRuntime> in your pom and the problem will become obvious.

Eg:
image

It will most likely be that your project uses a transitive dependency which needs to be declared as a direct dependancy, and using the verifyRuntime flag will highlight which one it is.

To fix, simply right mouse click on the transitive dependency in your project’s dependency list and select “Declare as Direct Dependency”

No comments:

Post a Comment