LendingClub / gradle-maven-plugin

maven plugin to invoke gradle
73 stars 36 forks source link

Multi thread build failed sometimes due Could not create an instance of Tooling API implementation using the specified Gradle distribution 'https://services.gradle.org/distributions/gradle-7.1.1-bin.zip' #46

Open smatvienko-tb opened 1 year ago

smatvienko-tb commented 1 year ago

Multi thread build failed sometimes due to gradle plugin racing for downloaded distribution 'https://services.gradle.org/distributions/gradle-7.1.1-bin.zip' on fresh environment

I suggest synchronizing the gradle init method to avoid such an issue

mvn clean install -DskipTests -T6
[ERROR] Failed to execute goal org.thingsboard:gradle-maven-plugin:1.0.11:invoke (default) on project http: org.gradle.tooling.GradleConnectionException: Could not create an instance of Tooling API implementation using the specified Gradle distribution 'https://services.gradle.org/distributions/gradle-7.1.1-bin.zip'. -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf org.thingsboard.transport:http