Adding one or more additional repositories in build.gradle (at the moment we have only jcenter()) can be a solution.
Jacopo On Fri, Mar 22, 2019 at 8:41 AM Swapnil M Mane < swapnil.m...@hotwaxsystems.com> wrote: > Hello team, > > Yesterday JCenter was down for some time, due to which I was unable to > start the OFBiz server (because the build was failed). > Status of JCenter can be found at [1]. > > This is a severe issue because it may be possible during any production > deployment, JCenter is down. Do we have any solution for the issue? > Please let me know if I am missing anything. > > [1] https://status.bintray.com/ > > Here is stacktrace of build failure. > ====================================== > *> Task :compileTestJava* FAILED > > FAILURE: Build failed with an exception. > > * What went wrong: > Execution failed for task ':compileTestJava'. > > Could not resolve all files for configuration ':testCompileClasspath'. > > Could not resolve org.mockito:mockito-core:2.+. > Required by: > project : > > Failed to list versions for org.mockito:mockito-core. > > Unable to load Maven meta-data from > https://jcenter.bintray.com/org/mockito/mockito-core/maven-metadata.xml > < > https://www.google.com/url?q=https://jcenter.bintray.com/org/mockito/mockito-core/maven-metadata.xml&sa=D&source=hangouts&ust=1553323118761000&usg=AFQjCNG-BdHXv5XipPli0zc2Lzk033SwEg > > > . > > Could not HEAD ' > https://jcenter.bintray.com/org/mockito/mockito-core/maven-metadata.xml > < > https://www.google.com/url?q=https://jcenter.bintray.com/org/mockito/mockito-core/maven-metadata.xml&sa=D&source=hangouts&ust=1553323118761000&usg=AFQjCNG-BdHXv5XipPli0zc2Lzk033SwEg > > > '. > > jcenter.bintray.com > > Failed to list versions for org.mockito:mockito-core. > > Unable to load Maven meta-data from > https://jcenter.bintray.com/org/mockito/mockito-core/maven-metadata.xml > < > https://www.google.com/url?q=https://jcenter.bintray.com/org/mockito/mockito-core/maven-metadata.xml&sa=D&source=hangouts&ust=1553323118761000&usg=AFQjCNG-BdHXv5XipPli0zc2Lzk033SwEg > > > . > > Could not HEAD ' > https://jcenter.bintray.com/org/mockito/mockito-core/maven-metadata.xml > < > https://www.google.com/url?q=https://jcenter.bintray.com/org/mockito/mockito-core/maven-metadata.xml&sa=D&source=hangouts&ust=1553323118761000&usg=AFQjCNG-BdHXv5XipPli0zc2Lzk033SwEg > > > '. > > jcenter.bintray.com > > * Try: > Run with *--stacktrace* option to get the stack trace. Run with *--info* or > *--debug* option to get more log output. Run with *--scan* to get full > insights. > > * Get more help at *https://help.gradle.org > < > https://www.google.com/url?q=https://help.gradle.org&sa=D&source=hangouts&ust=1553323118761000&usg=AFQjCNF7cVissA1Dr2SsZDCnovsUYDUE7Q > >* > > *BUILD FAILED* in 1m 14s > ====================================== > > - Best Regards, > Swapnil M Mane, > www.hotwax.co >