Login  Register

Re: BUILD FAILED

Posted by grv on May 06, 2021; 10:57am
URL: http://ofbiz.116.s1.nabble.com/BUILD-FAILED-tp4768561p4768568.html

Hi James

Since you're running "gradle", instead of "gradlew", chances are there is a
version mismatch because gradlew will make sure to download the compatible
gradle version to use for installation of OFBiz version in question. Using
gradle will use the version that's on your "PATH" which may or may not be
compatible.

Could you please try with "gradlew" once?

Best,
Girish



On Thu, May 6, 2021 at 3:58 PM James Brett <[hidden email]> wrote:

> Hi Jacques
>
> My apologies - I thought I had already subscribed.
>
> After I ran 'gradle init-gradle-wrapper' command (which failed), I ran
> 'gradle --debug' which returned the errors in my original post. I am using
> Windows 10.
>
> Thanks,
>
> James.
>
> On 2021/05/06 09:26:30, Jacques Le Roux <[hidden email]>
> wrote:
> > Hi James,
> >
> > Your message has been moderated, else it would not have reached this
> Mailing List.
> >
> > Please subscribe to the user ML for such questions and then use your
> email client.
> > See why here http://ofbiz.apache.org/mailing-lists.html.
> >
> > You will get a better support, people can answer you on the ML.
> > The wider the audience the better the answers you might get.
> >
> > Also it's more work for moderators who have to accept your messages as
> long as you have not subscribed.
> > I'll personally no longer accept them (other moderators still could).
> >
> > Thanks
> >
> > This said, could you tell us more about what you exactly did after
> init-gradle-wrapper? On what environment (OS) are you?
> >
> > Jacques
> >
> > Le 06/05/2021 à 10:50, James Brett a écrit :
> > > Hi all
> > >
> > > I need some help installing ofbiz. After running the gradle
> init-gradle-wrapper command  receive the following. Your help is greatly
> appreciated!:
> > >
> > > 20:48:24.713 [ERROR] [org.gradle.BuildExceptionReporter]
> > > 20:48:24.720 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE:
> Build failed with an exception.
> > > 20:48:24.729 [ERROR] [org.gradle.BuildExceptionReporter]
> > > 20:48:24.735 [ERROR] [org.gradle.BuildExceptionReporter] * Where:
> > > 20:48:24.741 [ERROR] [org.gradle.BuildExceptionReporter] Build file
> 'C:\apache-ofbiz-17.12.07\build.gradle' line: 105
> > > 20:48:24.747 [ERROR] [org.gradle.BuildExceptionReporter]
> > > 20:48:24.754 [ERROR] [org.gradle.BuildExceptionReporter] * What went
> wrong:
> > > 20:48:24.762 [ERROR] [org.gradle.BuildExceptionReporter] A problem
> occurred evaluating root project 'ofbiz'.
> > > 20:48:24.768 [ERROR] [org.gradle.BuildExceptionReporter] > Could not
> find method metadataSources() for arguments
> [build_87kry1wo6oq9n2cqpmtyx198q$_run_closure3$_closure62$_closure66$_closure68@a85644c]
> on
> org.gradle.api.internal.artifacts.repositories.DefaultMavenArtifactRepository_Decorated@40ce9049.
> > > 20:48:24.777 [ERROR] [org.gradle.BuildExceptionReporter]
> > > 20:48:24.784 [ERROR] [org.gradle.BuildExceptionReporter] * Try:
> > > 20:48:24.791 [ERROR] [org.gradle.BuildExceptionReporter] Run with
> --stacktrace option to get the stack trace.
> >
> >
>