netbeans-gradle-project icon indicating copy to clipboard operation
netbeans-gradle-project copied to clipboard

Failing to find dependencies in custom repositories

Open TheRealJagwire opened this issue 7 years ago • 5 comments

I'm setting a repository url in the maven block of my buildscript / repositories and it seems that the plugin can't resolve compile and runtime dependencies. I can verify the URLs are correct by browsing the path in chrome.

TheRealJagwire avatar Aug 28 '17 20:08 TheRealJagwire

Can you build your project from the command line? Are you using a proxy?

kelemen avatar Aug 28 '17 20:08 kelemen

Can compile from the command line. I don't believe there is a proxy in play, though the repository is proprietary and on my company's intranet.

TheRealJagwire avatar Aug 28 '17 20:08 TheRealJagwire

If your company uses a proxy, then it is possible that NB has the proxy configured and Gradle is trying to use the proxy to access your repository. Can you try disabling the proxy in the NB settings?

kelemen avatar Aug 28 '17 20:08 kelemen

Disabled the NB proxy settings with no luck. If it helps at all, the IntelliJ gradle support seems to work--not sure what they're doing differently, but I'm a NB guy and prefer it to others. :)

TheRealJagwire avatar Aug 28 '17 20:08 TheRealJagwire

As far as dependency resolution goes, what Idea does is not much different. Probably some setup is different. The only two things what I can think of now and might be different is the proxy settings and the version of Gradle you are using. Other than that, you may try disabling "Automatic tasks" (Tools/Options/Misc/Gradle/Task Execution).

kelemen avatar Aug 28 '17 20:08 kelemen