IntelliJ Gradle: Dependency added to Project ALWAYS attempts to download its pom file

已回答

Added a new required dependency IAW IntelliJ documentation to project. 25 already exist in project.

Project Settings...> Gradle > Build and run using Gradle
Project Settings...> Gradle > Run tests using Gradle
use Gradle from: gradle-wrapper.properties file

gradlew -v = 6.0.1 ( required by employer )
gradle -v = 6.0.1 ( required by employer )

IF I run gradlew from terminal: SUCCESS ( no msgs, no errors, no warnings )

IF I run gradle build from Gradle tool window: immmediatley begins to download pom file for that dependency. Download fails due to restrictions to Internet/Firewall ( required by employer )

jar file stored locally ( same location as 25 others ), pom file stored locally ( same location )

gradle build wrapper run from Gradle tool window

gradle buildDependency run from Gradle tool window ( download process of pom file begins and fails )

gradle build run from Gradle tool window ( download of pom file begins then fails )

gradlew build from terminal no errors

Thoughts?

 

0

Can you confirm that when you run from terminal the pom files are not actually downloaded? Try e.g. deleting the dependencies first, then invoke command line Gradle.

Also please port the full textual output including the error from the IDE and idea.log file (Help | Show Log in ... action) after IDE restart and reproducing.

For uploading you can use https://uploads.jetbrains.com or any file sharing service.

0

请先登录再写评论。