Login  Register

Re: AW: BUILD FAILED

Posted by Daniel Watford on May 10, 2021; 10:35am
URL: http://ofbiz.116.s1.nabble.com/BUILD-FAILED-tp4768561p4768659.html

Hi James,

When reviewing instructions and discussions, be careful to distinguish
between gradle and gradlew.

There are various forms of the init-gradle-wrapper script,
targeting windows and unix environments.

Ofbiz is built using the gradle wrapper script, gradlew. This script is not
distributed with ofbiz releases which means it needs to be downloaded,
along with its associated jar file.

If you take a look at the contents of init-gradle-wrapper.bat you should
see that it calls a powershell script in ./gradle/init-gradle-wrapp.ps1.
Looking at this script I see it will create a new directory,
gradle/wrapper, and download a jar file gradle/wrapper/gradle-wrapper.jar
from
https://github.com/gradle/gradle/raw/v6.5.1/gradle/wrapper/gradle-wrapper.jar
.

Looking at the powershell, it is not clear to me which line is responsible
for creating ./gradlew.

What is the content of your ./gradle directory?

Perhaps there are some problems running powershell on your system? If so,
could you run the ./gradle/init-gradle-wrapper.sh script from git-bash
instead?


On Mon, 10 May 2021 at 10:59, James Brett <[hidden email]> wrote:

> Hi Dan
>
> I have run 'C:\apache-ofbiz-17.12.07>init-gradle-wrapper'.
>
> This process asks for UAC permission, then when granted, seemingly does
> nothing. Am I missing something??
>
> On 2021/05/10 06:43:43, Daniel Watford <[hidden email]> wrote:
> > Hi James,
> >
> > The gradlew script is not included with ofbiz releases, you need to
> > retrieve it by running the init-gradle-wrapper script. See section 2.1
> here
> > - Apache OFBiz User Manual (ofbizextra.org)
> > <https://ofbizextra.org/ofbiz_adocs/docs/asciidoc/user-manual.html>
> >
> >
> > On Mon, 10 May 2021 at 07:29, James Brett <[hidden email]> wrote:
> >
> > > Hi Ingo
> > >
> > > Neither of these folders are in the installation directory.
> > >
> > > Thanks for your help,
> > >
> > > James.
> > >
> > > On 2021/05/07 08:10:57, Ingo Wolfmayr <[hidden email]> wrote:
> > > > Hi James,
> > > >
> > > > I asume your gradle version is not up to date. Can you go into your
> > > Ofbiz installation directory look for the hidden .gradle folder and
> let us
> > > know if you see the folder "4.5.1". If not, delete the content of the
> > > folder, build Ofbiz and check again.
> > > >
> > > > Best regards
> > > > Ingo
> > > >
> > > >
> > > >
> > > > -----Ursprüngliche Nachricht-----
> > > > Von: James Brett <[hidden email]>
> > > > Gesendet: Donnerstag, 6. Mai 2021 10:50
> > > > An: [hidden email]
> > > > Betreff: BUILD FAILED
> > > >
> > > > Hi allcd .
> > > >
> > > > 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.
> > > >
> > >
> >
> >
> > --
> > Daniel Watford
> >
>


--
Daniel Watford